如何在WP8中强制页面与xaml保持水平方向?

时间:2014-02-02 20:21:04

标签: windows-phone-8

如何在WP8应用中强制页面与xaml保持水平方向?

即。页面应该只支持水平,不能旋转回肖像(播放全屏视频)。

1 个答案:

答案 0 :(得分:1)

在XAML页面中使用:

SupportedOrientations="Landscape" Orientation="LandscapeLeft"

如果您想了解更多信息,请参阅SupportedOrientation属性的MSDN文档:
PhoneApplicationPage.SupportedOrientations Property