"WebView2" supports .NET -CHROMIUM -based Microsoft Edge is incorporated into the app

Microsoft in the United States August 19 (local time),.Announced preview release of "WebView2" control for NET applications.become able to.

The company has long been a "webbrowser" control based on "Internet Explorer" so that we can host Web content with desktop apps, but we can not follow the modernization of the web, so the successor "WebView" is new.Developed.However, this "WebView" control is based on "Microsoft Edge" in "EdgeHTML" and can only be used on Windows 10.Furthermore, the "Microsoft Edge" based on "EdgeHTML" was turned on by the "Chromium" -based "Microsoft Edge", and no more function updates could be expected.

「WebView2」が.NETに対応 ~Chromiumベースの新Microsoft Edgeをアプリに組み込み

So last year's “Build 2019” conference was the control of “WebView2” based on the new “Microsoft Edge” based on the “Chromium”.Initially, it could only be used in Win32 C ++ development on Windows 10, but it was updated regularly (basically every 6 weeks), and in May this year..Net and UWP (Winui 3).The support of 0) was announced.Many features are now provided, including navigation, web messaging (communication between applications and "WebView2"), native object injections (access directly from JavaScript).

デスクトップ版「Outlook」にWebコンテンツを組み込んだ例。アプリと「WebView2」の間で通信することも可能

The development platform currently supported by "WebView2" is as follows.It can also be used with familiar UI frameworks such as WPF and Windows Forms.

Compatible OS has also been expanded, Windows 8.It can be used on old OSs such as X/7.

To actually incorporate "WebView2" control into the development application, "NUGET" package (Microsoft.Web.Use WebView2).However, it is important to note that the preview version is needed with the "-PRERELEASE" option.

Related Articles