Windows phone 8 windows phone中的工具包包装和旋转
当我旋转手机时,wrappanle并没有改变,也并没有得到新的图形。我该怎么办 这是我的xaml代码:Windows phone 8 windows phone中的工具包包装和旋转,windows-phone-8,windows-phone,silverlight-toolkit,Windows Phone 8,Windows Phone,Silverlight Toolkit,当我旋转手机时,wrappanle并没有改变,也并没有得到新的图形。我该怎么办 这是我的xaml代码: <ScrollViewer> <toolkit:WrapPanel> <Rectangle Height="100" Width="200" Fill="Red" /> <Rectangle Margin="10" Height="100" Width="200"
<ScrollViewer>
<toolkit:WrapPanel>
<Rectangle Height="100" Width="200" Fill="Red" />
<Rectangle Margin="10" Height="100" Width="200" Fill="Red" />
<Rectangle Height="100" Width="200" Fill="Red" />
<Rectangle Height="100" Width="200" Fill="Red" Margin="10" />
<Rectangle Height="100" Width="200" Fill="Red" />
<Rectangle Height="100" Width="200" Fill="Red" Margin="10" />
<Rectangle Height="100" Width="200" Fill="Red" />
<Rectangle Height="100" Width="200" Fill="Red" Margin="10" />
<Rectangle Height="100" Width="200" Fill="Red" />
<Rectangle Height="100" Width="200" Fill="Red" Margin="10" />
<Rectangle Height="100" Width="200" Fill="Red" />
<Rectangle Height="100" Width="200" Fill="Red" Margin="10" />
<Rectangle Height="100" Width="200" Fill="Red" />
<Rectangle Height="100" Width="200" Fill="Red" Margin="10" />
<Rectangle Height="100" Width="200" Fill="Red" />
<Rectangle Height="100" Width="200" Fill="Red" Margin="10" />
</toolkit:WrapPanel>
您需要将
电话应用程序页面的SupportedOrientations
属性设置为肖像或风景
值
您可以在此处阅读有关屏幕方向的更多信息: