如何在Windows Phone 8中不使用网格的情况下在行中设置两个按钮



如何在不使用网格的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的定向属性

定向="水平"

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

最新更新