如
http://msdn.microsoft.com/en-us/library/ms742735(v=vs.110).aspx中所述,您应首先在XAML文件中创建WPF网格.
并通过将此代码插入C#源代码,在WPF表单中添加.NET WebKit.
System.Windows.Forms.Integration.WindowsFormsHost host =new System.Windows.Forms.Integration.WindowsFormsHost();
// Create the ActiveX control.
WebKit.WebKitBrowser browser = new WebKit.WebKitBrowser();
browser.Navigate("http://www.google.com");
// Assign the ActiveX control as the host control's child.
host.Child = browser;
// Add the interop host control to the Grid
// control's collection of child controls.
grdBrowserHost.Children.Add(host);
不要忘记包含这些参考
System.Windows.Forms
WindowsFormsIntegration
在你的项目中.
希望这有帮助.