原文:2018-8-10-WPF-checkbox文字下掉

WPF checkbox文字下掉
lindexi
2018-08-10 19:16:53 +0800
2018-2-13 17:23:3 +0800
WPF

2018-8-10-WPF-checkbox文字下掉-LMLPHP

可以使用

<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>

https://dotblogs.com.tw/v6610688/2014/04/21/xaml_checkbox_content_alignment&prev=searc

博客blog.csdn.net/lindexi_gd

05-26 17:16