Embed Firefox/Gecko in WPF/C#

前端 未结 5 1706
野的像风
野的像风 2021-02-03 12:30

I want to embed the current Gecko in my WPF-Project. I know there is the possibility with the Winforms-Host and the Skybound-Gecko-Library.

But I do not use the standard

5条回答
  •  你的背包
    2021-02-03 12:44

    You can probably use WindowsFormsHost, tutorial here

    https://nhabuiduc.wordpress.com/2014/09/18/geckofx-net-webbrowser-setup-and-features/

    the interesting part is

    WindowsFormsHost host = new WindowsFormsHost(); 
    GeckoWebBrowser browser = new GeckoWebBrowser(); 
    host.Child = browser; 
    gridWeb.Children.Add(host);
    

提交回复
热议问题