WPF的Label默认的padding不为0

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

但是效果还是如上图所示,后来在代码中加上 Padding="0",效果如下:

WPF的Label默认的padding不为0

   可以看到,Tools是直接靠这红色背景的边框的,不像第一张图片中那样,代码如下:

1 <Label Foreground="White"
2        Content="Tools"  
3        FontSize="16" 
4        VerticalAlignment="Center" 
5        Background="Red" 
6        Padding="0"/>
View Code