Windows Phone 8.1 应用程序的 XAML 中的 SupportedOrientations 不可用? [英] SupportedOrientations unavailable in XAML of windows phone 8.1 app?

查看:26
本文介绍了Windows Phone 8.1 应用程序的 XAML 中的 SupportedOrientations 不可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows Phone 8.1 应用程序中的等效项是什么.当我创建一个新应用时,没有更多电话:ApplicationPage

What is the equivalent of this in Windows Phone 8.1 App. When I create a new app, there is no more phone:ApplicationPage

<phone:PhoneApplicationPage
...
...
SupportedOrientations="Landscape" Orientation="LandscapeLeft"
shell:SystemTray.IsVisible="False">

推荐答案

是的,在 windows phone 8.1 中,我们无法在页面的 XAML 中设置 supportedOrientations.我们只能在 Package.appxmanifest 中设置应用程序的支持方向.

Yes, In windows phone 8.1, We can't set supportedOrientations in page's XAML. We can set supportedOrientations of App in Package.appxmanifest only.

这篇关于Windows Phone 8.1 应用程序的 XAML 中的 SupportedOrientations 不可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆