可以使用
<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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2021-10-02
猜你喜欢
  • 2021-11-05
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2021-05-30
相关资源
相似解决方案