WPF checkbox文字下掉


可以使用

<Style TargetType="CheckBox">
<Setter Property="Margin" Value="10,10,10,10"></Setter>
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="10" />
</Style>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Margin" Value="1,1,1,1" />
</Style>
<CheckBox Grid.Row="0" Grid.Column="1" >
<TextBlock Text="内容" />
</CheckBox>