用于微软表面的Web浏览器 [英] Web Browser for microsoft surface

查看:99
本文介绍了用于微软表面的Web浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试启用webBrowser事件的触摸,但它不起作用。是否有人知道如何操作并拥有示例代码。


谢谢

解决方案

Thiemoko,


我会在Windows 7上使用WPF 4和Surface Toolkit。然后你可以免费获得触控。但是,这不是Microsoft Surface 1.0的选项,因为它不会发送Windows 7触摸事件。这适用于三星SUR40 for Microsoft Surface,
虽然!


一般不建议在Microsoft Surface上显示Web浏览器,因为Web浏览器是针对垂直屏幕而制作的用户一次。此外,WPF WebBrowser控件无法旋转,因为它在幕后使用的技术
(WinForms hwnd host)。


最后,Chris Cavanagh制作了一个.NET包装器Awesomium,一个基于Chromium的Web浏览器控件,以及构建于此之上的WPF控件。它支持旋转和缩放,但您必须手动实现多点触控操作。
该控件可在
http:// chriscavanagh上找到.wordpress.com / 2009/08/25 / A-真实WPF的网页浏览器/
。与标准的WPF WebBrowser相比,这个控件的性能差得多。


祝你好运!


/ Sebastian


Im tryng to make enable the touch of webBrowser event but its not working. Does somebody have any idea to how to do it and have a sample code .

Thank you

解决方案

Thiemoko,

I would use WPF 4 together with Surface Toolkit on Windows 7. Then you get the touch for free. This isn't an option for Microsoft Surface 1.0, though, since it doesn't send Windows 7 touch events. This will work on Samsung SUR40 for Microsoft Surface, though!

Generally showing a web browser on Microsoft Surface isn't recommended since a web browser was made for vertical screens and one user at a time. Additionally, the WPF WebBrowser control cannot be rotated because of the technology it's using behind the scenes (WinForms hwnd host).

Lastly, Chris Cavanagh made a .NET wrapper around Awesomium, a web browser control based on Chromium, and a WPF control that builds on top of that. It supports rotation and scaling, however you would have to implement multi-touch manipulations manually. The control can be found on http://chriscavanagh.wordpress.com/2009/08/25/a-real-wpf-webbrowser/. Compared to the standard WPF WebBrowser this control has a lot worse performance, though.

Good luck!

/Sebastian


这篇关于用于微软表面的Web浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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