Windows phone 8 如何在windows phone 8中不使用网格设置一行中的两个按钮

Windows phone 8 如何在windows phone 8中不使用网格设置一行中的两个按钮,windows-phone-8,Windows Phone 8,如何在windows phone中不使用网格设置一行中的两个按钮 单行中的两个控件 <StackPanel Grid.Row="1"> <Button Content="-" Width="80" /> <Button Content="+" Width="80" /> </StackPanel> 使用stackPanel的方向属性 <StackPanel Grid.Row="

如何在windows phone中不使用网格设置一行中的两个按钮

单行中的两个控件

  <StackPanel Grid.Row="1">
            <Button Content="-" Width="80"  />
            <Button Content="+" Width="80" />  
  </StackPanel>


使用stackPanel的方向属性

<StackPanel Grid.Row="1" Orientation="Horizontal">
            <Button Content="-" Width="80"  />
            <Button Content="+" Width="80" />  
  </StackPanel>
<StackPanel Grid.Row="1" Orientation="Horizontal">
            <Button Content="-" Width="80"  />
            <Button Content="+" Width="80" />  
  </StackPanel>


使用stackPanel的方向属性

方向=“水平”