Windows store apps 如何在将Windows 8.1重定目标为Windows 10时限制用户从平板电脑模式()切换?
我已经在Windows 8.1中创建了一个应用程序,并在Windows 10平板电脑上运行它,但我只想在横向模式下运行该应用程序 如何限制用户从action center切换到平板电脑模式 但我只想在横向模式下运行应用程序 您可以在包清单中添加Windows store apps 如何在将Windows 8.1重定目标为Windows 10时限制用户从平板电脑模式()切换?,windows-store-apps,win-universal-app,windows-10-universal,Windows Store Apps,Win Universal App,Windows 10 Universal,我已经在Windows 8.1中创建了一个应用程序,并在Windows 10平板电脑上运行它,但我只想在横向模式下运行该应用程序 如何限制用户从action center切换到平板电脑模式 但我只想在横向模式下运行应用程序 您可以在包清单中添加InitialRotationPreference: <InitialRotationPreference> <Rotation Preference="landscape"/> </InitialRotationP
InitialRotationPreference
:
<InitialRotationPreference>
<Rotation Preference="landscape"/>
</InitialRotationPreference>
这将使您的应用程序保持横向显示,并且当设备保持纵向或纵向翻转时,不会改变方向
有关更多详细信息,请参阅
需要限制用户从action center切换平板电脑模式
查看以下页面中的最后一个常见问题:
屏幕旋转不一定与平板电脑模式相关。屏幕旋转与您当前的设备配置有关,这可能与设备是否处于“平板电脑模式”有关。
已更新:
这是针对原始设备制造商的。目前不存在WinRT API来实现这一点。但我只在Windows10平板电脑上运行我的Windows8.1应用程序。。我可以在Windows 8.1中使用ConvertibleSlateModePromptPreference吗?这样它就可以在Windows10平板电脑上工作。