强制 windows WebView 以纵向模式加载内容
Force windows WebView to load content in Portrait mode
我有 windows phone 在 unity3d 上创建的 8.1 游戏。它仅支持横向。但是我的游戏中需要 WebView
才能以纵向模式加载页面。
如何强制WebView
以纵向模式加载内容?
这不是我需要的,但现在我使用
DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;
当 WebView 加载页面时,
DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape;
当关闭 WebView 并返回游戏时。
我有 windows phone 在 unity3d 上创建的 8.1 游戏。它仅支持横向。但是我的游戏中需要 WebView
才能以纵向模式加载页面。
如何强制WebView
以纵向模式加载内容?
这不是我需要的,但现在我使用
DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;
当 WebView 加载页面时,
DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape;
当关闭 WebView 并返回游戏时。