This sample demonstrates how to embed WPFBrowserView into WinForms ElementHost.


The source code of the application form is provided below:


public class MainForm : System.Windows.Forms.Form
{
    public ElementHost Host { get; set; }
    public WPFBrowserView BrowserView { get; set; }

    public MainForm()
    {
        Host = new ElementHost {Dock = DockStyle.Fill};
        BrowserView = new WPFBrowserView() {URL = "teamdev.com/dotnetbrowser"};

        Controls.Add(Host);
        Host.Child = BrowserView; 
    }
}