I have an issue with defining FontFamily to my textboxes applicationwide, because my font family is defined at window level with this style :
<Style TargetType="Window" >
<Setter Property="FontFamily" Value="Lucida Sans Unicode"/>
<Setter Property="FontSize" Value="10pt"/>
</Style>
I have defined the font-family for my textboxes this way :
<Style TargetType="{x:Type TextBox}">
<Setter Property="FontFamily" Value="Arial"/>
<Setter Property="FontSize" Value="10pt"/>
</Style>
However, my TextBox style is not applied, and the text into the textboxes is still Lucida, and not Arial. How can I do that ? Is there a css-like !important equivalent in XAML style to override previous one ?
I notice that I really appreciate a XAML way to perform it on ResourceDictionaries.
Thanks for answers