问题
Microsoft has recently released Edge browser which uses Chromium engine to render HTML. Is there a WinForms component which allows to embed it in a desktop application?
I'm aware of CefSharp for WinForms, just looking if there's something supported natively.
回答1:
WebView2 - Developer Preview
The Microsoft Edge WebView2 control which is currently in developer preview enables you to host web content in your application using Microsoft Edge (Chromium) as the rendering engine.
The developer preview is available on the following programming environments:
- Win32 C/C++
- .NET Framework 4.6.2 or later
- .NET Core 3.0 or later
- WinUI 3.0.
Notice
WebView2
will replace the WebView
control in the toolkit. WebView
has already been marked as obsolete.
Sample C++ Win32 Application
- WebView2 API Sample for a comprehensive example of our SDKs capabilities.
- WebView2Browser an application built using WebView2.
- Getting Started with WebView2
Sample WinForms Application
- Sample WinForms Application - GitHub Repository
- Getting started with WebView2 in Windows Forms apps (Preview)
来源:https://stackoverflow.com/questions/59959606/is-there-winforms-control-for-chromium-edge-html-renderer