![](/img/trans.png)
[英]How to add padding between the TreeView control's contents and its edges
[英]how do I add padding between checkbox and its content
在我的Winphone 8.1中,复选框和它的内容之间没有填充,它们之间是如此的紧密,而在Visual Studio xaml查看器中,我可以看到它们之间有一个空格。
<StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal" VerticalAlignment="Stretch" Background="White">
<CheckBox Name="Chk1" Height="55" Content="blah blah1" Margin="5,0,0,0"></CheckBox>
<CheckBox Name="Chk2" Height="55" MinWidth="100" Content="Blah blah2"></CheckBox>
</StackPanel>
我什至尝试添加最小宽度,但是它没有用..在复选框及其内容之间仍然没有填充。
使用左边的填充,那应该没问题
<CheckBox Name="Chk1" Height="55" Padding="5,0,5,0" Content="blah blah1" Margin="5,0,0,0"></CheckBox>
<CheckBox Name="Chk2" Height="55" Padding="5,0,5,0" MinWidth="100" Content="Blah blah2"></CheckBox>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.