WPF WebBrowser Control disable pinch and zoom on win8 desktop

巧了我就是萌 提交于 2019-12-20 02:56:31

问题


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.

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.


回答1:


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.



来源:https://stackoverflow.com/questions/17875845/wpf-webbrowser-control-disable-pinch-and-zoom-on-win8-desktop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!