This article is a mirror article of machine translation, please click here to jump to the original article.

View: 6989|Reply: 3

[Source] [WebView2] (1) Initial introduction to Microsoft Edge WebView2 technology

[Copy link]
Posted on 2022-9-25 13:51:37 | | | |
The Microsoft Edge WebView2 control allows embedding web technologies (HTML, CSS, and JavaScript) in native apps. The WebView2 control uses Microsoft Edge as the drawing engine to display web content in native apps.

Introducing Microsoft Edge WebView2:The hyperlink login is visible.

With WebView2, you can embed web code in different parts of your native app, or build all your native apps in a single WebView2 instance. In simple terms, it means that you develop an application (e.g., WPF, WinForm) that can embed some web pages.



Official description of WebView2 advantages

Web ecosystem and skill set. Leverage the entire web platform, libraries, tools, and talent that exist in the web ecosystem.
Innovate fast. Web development allows for rapid deployment and iteration.
Windows 7, 8, 10, and 11 support. Support for a consistent user experience across Windows 7, Windows 8, Windows 10, and Windows 11.
Native functions. Access the full set of native APIs.
Codeshare. Adding web code to your codebase can increase reuse across multiple platforms.
Microsoft support. Microsoft provides support and adds new feature requests on supported platforms.
Evergreen distribution. Rely on the latest version of Chromium with regular platform updates and security patches.
Version distribution fixed. You can also package specific versions of Chromium bits in your app.
Incremental adoption. Step by step to add web components to your app.

Personal WebView2 technology pros and cons

Advantage:

1. Hybrid development, you can use rich front-end HTML, JS, CSS technology to make cool effects, some charts are very difficult to implement with back-end technology, and it is very easy to do it with front-end;
2. For applications with complex form linkage, using front-end framework development has great advantages over back-end development;
3. If the online link is embedded, you may only need to update the site, no need to update the client, even if it is an embedded web resource, you only need to update the download resource package;
4. RuntimeIn Windows 11, this component is installed on the system by default, therefore, the packaged application will not be very large;

Shortcoming:

1. Now it can only run on the Windows platform, and I don't know if there are any plans to cross platforms in the future;
2. If the system does not install WebView2 runtime, the software cannot run normally, so it may be necessary to go online or install the required running environment for the first time;

WebView2 browser kernel

Simply put, WebView2 is a browser kernel that provides functions to help you render front-end resources. The browser kernel used by WebView2 is Chromium, a web browser developed by Google. Distributed under multiple free copyrights such as the BSD license and open source, Chromium may have been in development as early as 2006. Chromium is the engine behind Google's Google Chrome browser, which aims to create a universal browser that is secure, stable, and fast.

WebView2 supported platforms

The following programming environments are supported:

  • Win32 C/C++
  • .NET Framework 4.5 or later
  • .NET Core 3.1 or later
  • .NET 5
  • .NET 6
  • WinUI 2.0
  • WinUI 3.0


WebView2 apps can run on the following versions of Windows:

Windows 11
Windows 10
Windows 10 IoT Enterprise LTSC x32 2019
Windows 10 IoT Enterprise LTSC x64 2019
Windows 10 IoT Enterprise 21h1 x64
Windows 8.1
Windows 7 **
Windows Server 2019
Windows Server 2016
Windows Server 2012
Windows Server 2012 R2
Windows Server 2008 R2 **

WebView2 runtime

The WebView2 runtime is a redistributable runtime that acts as the foundation (or support) for the WebView2 application (or supports) the web platform. This concept is similar to Visual C++ or the .NET runtime for C++/.NET apps. The WebView2 runtime contains modified Microsoft Edge binaries that have been fine-tuned and tested for WebView2 apps. Once the WebView2 runtime is installed, it does not appear as a user-visible browser app. For example, users don't have browser desktop shortcuts or entries in the Start menu.

In the Windows 11 operating system,The WebView2 runtime is already installed by default, which also means that you only need to manually install the WebView2 runtime on lower versions of the operating system, as shown in the figure below:



Download the WebView2 runtime:The hyperlink login is visible.

(End)





Previous:20 new APIs for .NET 6
Next:[WebView2] (2) WinForm introduces WebView2 to display web content
 Landlord| Posted on 2022-9-25 20:47:13 |
The C# browser Firefox kernel Geckofx can implement functions such as proxy and process independence
https://www.itsvse.com/thread-2859-1-1.html
Posted on 2023-8-8 09:06:26 |
Come and learn
Posted on 2025-4-22 11:54:37 |
It's too harmful
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com