2、CSharp与JS交互问题:
1)在 继承CefRenderProcessHandler的子类中重载OnWebKitInitialized()函数,注册JS类
2)在 继承CefApp的子类中创建“继承CefRenderProcessHandler的子类”实例,并重载GetRenderProcessHandler()函数,返回上创建的实例句柄。(关键、易忽略)
1、问题:Xilium.Cef和CEF合并、运行成功后,运行Xilium.Cef中WPF Demo弹出网页,但自己新建的项目中却谈不出网页,不报错误。
解决方法:在自己的新建项目的属性中,“调试”项下,去掉 勾选的“启动Visual Studio 承载进程”