1. 首先在XAML文件中添加Grid的定义
<Grid x:Name="grdBrowserHost">
</Grid>
2. 项目中添加引用
System.Windows.Forms
WindowsFormsIntegration
3. 在C#代码中添加代码实现添加browser控件的功能
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);
相关资料:https://stackoverflow.com/questions/4386422/how-to-use-webkit-browser-control-in-wpf