Use chrome as browser in C#?

前端 未结 10 2118
栀梦
栀梦 2020-12-02 10:51

Is there a way to use Google Chrome (or Safari or Firefox) as the browser in a C# application? C# now uses Internet Explorer, and the website they want to use in this progra

相关标签:
10条回答
  • 2020-12-02 11:31

    I don't know of any full Chrome component, but you could use WebKit, which is the rendering engine that Chrome uses. The Mono project made WebKit Sharp, which might work for you.

    0 讨论(0)
  • 2020-12-02 11:32

    You can use GeckoFX to embed firefox

    0 讨论(0)
  • 2020-12-02 11:38

    I use Awesomium, I think it is better than GeckoFX/WebKit http://awesomium.com

    0 讨论(0)
  • 2020-12-02 11:46

    1/3/2017 --> January the 3rd 2017

    Hi there, today I found this article to achieve this, the article is called "Creating an HTML UI for Desktop .NET Applications" and is intended to embed a chromium based control in a WPF application. It saved me the day.

    https://www.infoq.com/articles/html-desktop-net

    I hope it helps somebody else.

    NOTE: it is based on DotNetBrowser, see license agreement here: https://www.teamdev.com/dotnetbrowser-licence-agreement

    0 讨论(0)
  • 2020-12-02 11:47

    Update for 2014:

    I use geckofx, a healthy open source project that (as of this writing) keeps up to date pretty well with the latest Firefox releases.

    To embed Chrome, you might consider another healthy looking open source project, Xilium.cefGlue, based on The Chromium Embedded Framework (CEF).

    Both of these support WPF and Winforms, and both projects have support for .net and mono.

    0 讨论(0)
  • 2020-12-02 11:50

    OpenWebKitSharp gives you full control over WebKit Nightly, which is very close to webkit in terms of performance and compatibility. Chrome uses WebKit Chromium engine, while WebKit.NET uses Cairo and OpenWebKitSharp Nightly. Chromium should be the best of these builds, while at 2nd place should come Nightly and that's why I suggest OpenWebKitSharp.

    http://gt-web-software.webs.com/libraries.htm at the OpenWebKitSharp section

    0 讨论(0)
提交回复
热议问题