c# webkit html5浏览器 NanUI for Winform发布,让Winform界面设计拥有无限可能

1. openwebkitsharp demo的运行

1. 查看说明How to use.txt 文档基础没有问题

2. c# 调用JS的方法

注意HTML当中关联的JS文件一定要存在。openwebkitsharp 当中JSTest文件page.html所关联的JS路径:

<script type="text/javascript" src="file:///C:/HelloWorld.js"></script> 所有一定要将HelloWorld.js文件放置到盘目录下面,否则执行个JavaScriptExample.exe当中的JS事件不成功

3. JS调用C#的方法

在JS代码当中window.external.XXXX 如 window.external.play();

在C#类当中的网页加载完成方法当中,要绑定window.external对象 this.webKitBrowser1.GetScriptManager.ScriptObject = this;

http://www.awesomium.com/download/

http://awesomium.codeplex.com/

http://www.awesomium.com/download/

http://blog.csdn.net/snakorse/article/details/19758399

c#winform中使用WebKit传递js对象实现与网页交互

http://blog.sina.com.cn/s/blog_4b44e1c00101gych.html

http://www.cnblogs.com/jiangming/archive/2013/01/21/OpenWebkitSharp.html

VS2010 运行 OpenWebkitSharp

OpenWebKitSharp for WPF

http://blog.sina.com.cn/s/blog_4b44e1c00101gyxy.html

https://github.com/NetDimension/NanUI