1.如图:WPF的Label默认的padding不为0

   要求让“Tools” 左对齐,代码中已设置:HorizontalContentAlignment="Left" 

1 <Label Foreground="White" 
2            Content="Tools" 
3            Grid.Column="1" 
4            HorizontalContentAlignment="Left" 
5            VerticalAlignment="Center" 
6            Background="Red"/>                         
View Code

相关文章:

  • 2021-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-03-08
  • 2022-03-06
  • 2021-12-30
  • 2022-01-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
相关资源
相似解决方案