簡體   English   中英

如何在復選框及其內容之間添加填充

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM