WPF WebBrowser Control 在 win8 桌面上禁用捏合和缩放 [英] WPF WebBrowser Control disable pinch and zoom on win8 desktop

查看:28
本文介绍了WPF WebBrowser Control 在 win8 桌面上禁用捏合和缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 WPF WebBrowser 控件上禁用捏合和缩放.环境是一个使用 .NET4.0 的 win8 桌面 WPF 应用程序.使用 regedit 设置告诉它使用 IE10 引擎.

Is there a way to disable pinch and zoom on a WPF WebBrowser Control. The enviroment is a win8 Desktop WPF app using .NET4.0. With a regedit setting that tells it to use IE10 engine.

我已经尝试使用 css 来禁用它,但不适用于 WebBrowser Control.如果从网络浏览器查看页面,它确实有效.

I have already tried using css to disable it but does not work for WebBrowser Control. It does work if the page is viewed from web browsers.

推荐答案

如果仍有兴趣,您需要禁用 禁用 WebBrowser 控件的 IE 旧版输入模型.我刚刚在这里这里,有一个有效的示例项目.

If still interested, you'd need to disable Disable IE Legacy Input Model for WebBrowser control. I've just answered similar questions here and here, with a working sample project.

这篇关于WPF WebBrowser Control 在 win8 桌面上禁用捏合和缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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