弹出窗口内的浏览器方向 - Windows Phone 7
我的浏览器位于弹出窗口内,当我们将 Windows 设备旋转到横向模式时,它也不会自动旋转浏览器。但是,普通浏览器(不在弹出窗口中)运行良好。有谁知道如何自动或以编程方式解决此问题(这意味着我们捕获旋转事件,然后自己旋转浏览器)
My browser is inside a popup and when we rotate the windows device into the landscape mode, it doesn't auto rotate the browser as well. However, the normal browser (not in the pop up) works well. Does anybody know how to fix this issue automatically or programmatically (that means we catch the rotation event and then rotate the browser ourselves)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
原来我的问题是因为第三方工具包,silverlight控制工具包。当我删除过渡页面动画代码时,事情就正常了
It turns out that my problem is because of third party toolkit, silverlight control toolkit. When I removed the transition page animation code out, things just work
WebBrowser 控件将自动处理此问题。
只需检查您是否有 SupportedOrientations="PortraitOrLandscape" 并且您的模拟器没有处于无法处理方向更改的状态(即 SIP 隐藏/硬件键盘模拟) - 如果不确定,请重新启动您的 emu。
The WebBrowser control will handle this automagicaly.
Just check you have SupportedOrientations="PortraitOrLandscape" and that you haven't got your emulator in a state where it won't handle orientation changes (ie SIP hidden/hardware keyboard emulation) - restart your emu if not sure.