window set fontsize question
-
Because the default style applied to all
Menu
controls overrides the font size:<Style TargetType="{x:Type Menu}">
<Setter Property="TextElement.FontSize">
<Setter.Value>
<DynamicResource ResourceKey="{x:Static SystemFonts.MenuFontSizeKey}" />
</Setter.Value>
</Setter>
</Style>As documented on MSDN[^], values set in a
Style
override values inherited from parent controls. You either need to set the font size explicitly on theMenu
, or create and apply a newStyle
for theMenu
.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Because the default style applied to all
Menu
controls overrides the font size:<Style TargetType="{x:Type Menu}">
<Setter Property="TextElement.FontSize">
<Setter.Value>
<DynamicResource ResourceKey="{x:Static SystemFonts.MenuFontSizeKey}" />
</Setter.Value>
</Setter>
</Style>As documented on MSDN[^], values set in a
Style
override values inherited from parent controls. You either need to set the font size explicitly on theMenu
, or create and apply a newStyle
for theMenu
.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer