我已经加入的StackPanel两个按钮和设置对准,如图中的代码如何对齐windows phone 7中的堆叠面板上的按钮?
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
<Button Content="Button" Height="64" Name="button1" Width="160" HorizontalAlignment="Left" VerticalAlignment="Top"/>
<Button Content="Button" Height="64" Name="button2" Width="160" HorizontalAlignment="Right" VerticalAlignment="Top"/>
</StackPanel>
但这并不与我的需求相匹配。我希望它像下图所示。
所以,我怎么能做到这一点?
是Windows Phone 7吗?看起来像iphone :-) – Shoban 2011-03-31 07:18:02
它的iPhone只。这是要求 – rubyraj 2011-03-31 07:24:48
缩进标记和4个空格的代码,以便它在您的问题中正确显示。考虑在编辑问题时阅读右侧显示的Markdown文档。 – AnthonyWJones 2011-03-31 08:49:59