I am using merged dictionaries in an external library with Silverlight 3 and the style I have defined in the resource file (styles.xaml) is applied correctly to my button controls.
I want to apply a font to my buttons and I have the font in the same directory as my styles.xaml (in the external dll with build action as resource). In the styles.xaml I have:
<Style x:Key="MyButtonStyle"
TargetType="Button">
<Setter Property="Background"
Value="#FF1F3B53" />
<Setter Property="Foreground"
Value="#FF000000" />
<Setter Property="Padding"
Value="3" />
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="FontFamily"
Value="VINERTIC.TTF#Viner Hand ITC" />
etc.
However, the font is not applied. I have tried putting the font file in the App.XAML directory and still it is not applied. If I apply the font outside the style, then it works fine.
JD