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)
|