如何在一行中设置两个按钮而不在Windows Phone中使用网格
单行内的两个控件
<StackPanel Grid.Row="1">
<Button Content="-" Width="80" />
<Button Content="+" Width="80" />
</StackPanel>
使用stackPanel的Orientation属性
Orientation =“水平”
<StackPanel Grid.Row="1" Orientation="Horizontal">
<Button Content="-" Width="80" />
<Button Content="+" Width="80" />
</StackPanel>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句