<Window.Resources>
<Style TargetType="{x:Type TextElement}">
<Setter Property="FontSize" Value="50"/>
</Style>
</Window.Resources>
<Grid>
<StackPanel Orientation="Vertical" Grid.Column="0" >
<Button Click="ButtonBase_OnClick" x:Name="qq">xxx</Button>
<Button>xxx</Button>
<Button>xxx</Button>
</StackPanel>
</Grid>
code like above
as I know, FontSize of Button is a DP from TextElement,but why this code no effect?
<Window.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="FontSize" Value="50"/>
</Style>
</Window.Resources>
if I change the TextElement to Button everything is ok, why ?