强制Windows WebView以纵向模式加载内容

时间:2015-04-24 10:07:56

标签: xaml unity3d windows-8.1

我在unity3d上创建了windows phone 8.1游戏。它仅支持横向定位。但我需要在游戏中使用WebView以纵向模式加载页面。 如何强制WebView以纵向模式加载内容?

1 个答案:

答案 0 :(得分:0)

这不是我需要的,但现在我使用

DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;

当WebView加载页面时,

DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape;

关闭WebView并返回游戏时。