在Windows 8.1应用程序中,这相当于什么呢?当我创建一个新的应用程序时,就没有手机了:ApplicationPage
<phone:PhoneApplicationPage
...
...
SupportedOrientations="Landscape" Orientation="LandscapeLeft"
shell:SystemTray.IsVisible="False">发布于 2014-05-07 02:44:06
是的,在windows 8.1中,我们不能在佩奇的XAML中设置supportedOrientations。我们只能在supportedOrientations中设置应用程序的Package.appxmanifest。
发布于 2014-06-01 17:41:57
您可以通过代码强制任何页面的方向,只需在this.InitializeComponent()之后编写:
DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape;或
DisplayInformation.AutoRotationPreferences = DisplayOrientations.LandscapeFlipped;或
DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;https://stackoverflow.com/questions/23507672
复制相似问题