能够支持HTML5的网页浏览器WPF [英] Ability to support Html5 in WPF webbrowser
本文介绍了能够支持HTML5的网页浏览器WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的WPF的浏览器不支持HTML5网页元素,我不知道如何实现对它的支持。我已经安装了IE9,我可以看到HTML5元素与IE浏览器浏览。
My WPF browser does not support html5 elements on webpages, and I do not know how to implement support for it. I do have IE9 installed and I can see html5 elements browsing with IE.
与我怎么能去约增加了对HTML5的支持任何帮助是非常AP preciated。
Any help with how I can go about adding support for html5 is very much appreciated.
推荐答案
其实,我发现我自己的解决方案。在这个页面上解释道:的http://kirubhananth.blogspot.se/2013/04/how-to-load-html-5-content-in-wpf.html
I actually found out the solution by myself. Everything is explained on this page: http://kirubhananth.blogspot.se/2013/04/how-to-load-html-5-content-in-wpf.html
- 单击开始 - >运行(或
赢+ R
快捷方式) - 键入
REGEDIT
在文本框中,点击进入。注册表编辑器将被打开。需要管理权限打开并修改注册表。 - 导线在左侧面板中的树通过
HKEY_LOCAL_MACHINE - >软件 - > Wow6432Node - >微软 - >互联网浏览器 - > MAIN - > FeatureControl - > FEATURE_BROWSER_EMULATION
- 选择
FEATURE_BROWSER_EMULATION
右键单击右侧的按键面板的空白处,选择新建后 - > DWORD(32位)值
- 设置值的名称作为您的应用程序的名字。例如:
MyApp.exe的
- 将vaule数据270F和蜱十六进制。
- 要支持调试通过Visual Studio,添加另一个键具有相同值的数据,并与
.vshost
您的应用程序名和扩展名之间。例如:MyApp.vshost.exe
- Click Start -> Run (or
Win+R
shortcut) - Type
REGEDIT
in the textbox and click enter. The Registry Editor will be opened. Needs administration rights to open and modify the registry. - Traverse in the tree in left side panel through
HKEY_LOCAL_MACHINE -> SOFTWARE -> Wow6432Node -> Microsoft -> Internet Explorer -> MAIN -> FeatureControl -> FEATURE_BROWSER_EMULATION
- After selecting the
FEATURE_BROWSER_EMULATION
right click the empty space in the right side keys panel and selectNew -> DWORD (32 bit) Value
- Set the value name as your app's name. eg:
MyApp.exe
- Set the vaule data to 270f and tick Hexadecimal.
- To support debugging through Visual Studio, add another key with the same value data and with
.vshost
between your app name and the extension. eg:MyApp.vshost.exe
这篇关于能够支持HTML5的网页浏览器WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文