Visual studio 2015 页面上元素(按钮、文本框)之间的间距
我把它放在一个页面()上,我想在不同的元素之间留一个间距,这样它们就不会像图片中那样在一起了。我希望他们能更广泛地分布在整个页面上,而不是相互追赶。 代码:Visual studio 2015 页面上元素(按钮、文本框)之间的间距,visual-studio-2015,uwp,uwp-xaml,Visual Studio 2015,Uwp,Uwp Xaml,我把它放在一个页面()上,我想在不同的元素之间留一个间距,这样它们就不会像图片中那样在一起了。我希望他们能更广泛地分布在整个页面上,而不是相互追赶。 代码: 如果需要间隙,请添加边距 <TextBox x:Name="inputBox" InputScope="Number" RelativePanel.AlignVerticalCenterWithPanel="True" Height="32"
如果需要间隙,请添加边距
<TextBox x:Name="inputBox"
InputScope="Number"
RelativePanel.AlignVerticalCenterWithPanel="True"
Height="32"
RelativePanel.AlignHorizontalCenterWithPanel="True"
TextWrapping="Wrap"
PlaceholderText=""
Margin="0,10,0,0"
Width="71"/>
<Button x:Name="Calculate" Content="Calculate"
RelativePanel.AlignHorizontalCenterWithPanel="True"
RelativePanel.AlignVerticalCenterWithPanel="True"
RelativePanel.Below="inputBox"
Margin="0,10,0,0"
Click="Calculate_Click"/>
<TextBlock x:Name="ValorFinal"
RelativePanel.Below="Calculate"
RelativePanel.AlignVerticalCenterWithPanel="True"
RelativePanel.AlignHorizontalCenterWithPanel="True"
TextWrapping="Wrap"
Height="16"
Margin="0,10,0,0"
Text="Total:"/>
<TextBox x:Name="inputBox"
InputScope="Number"
RelativePanel.AlignVerticalCenterWithPanel="True"
Height="32"
RelativePanel.AlignHorizontalCenterWithPanel="True"
TextWrapping="Wrap"
PlaceholderText=""
Margin="0,10,0,0"
Width="71"/>
<Button x:Name="Calculate" Content="Calculate"
RelativePanel.AlignHorizontalCenterWithPanel="True"
RelativePanel.AlignVerticalCenterWithPanel="True"
RelativePanel.Below="inputBox"
Margin="0,10,0,0"
Click="Calculate_Click"/>
<TextBlock x:Name="ValorFinal"
RelativePanel.Below="Calculate"
RelativePanel.AlignVerticalCenterWithPanel="True"
RelativePanel.AlignHorizontalCenterWithPanel="True"
TextWrapping="Wrap"
Height="16"
Margin="0,10,0,0"
Text="Total:"/>