WebView2is available for both .NET Core and .NET Framework. It can be used inside of WPF, Windows Forms and WinUI 3.0 applications all the way down to Windows 7.
Important: When installing the NuGet package, make sure to check Include prerelease checkbox and select a version with theGoing forward, we will be updating our SDK every six weeks according to the Roadmap, driven by your feedback. You can keep up with the latest updates in the Release Notes.
-prereleasesuffix. Otherwise you will not get .NET support.
About the controlWith the help of the
WebView2family of controls you can host web content in your desktop .NET applications and enhance them with all the benefits that web has to offer, such as dynamic content, modern user interfaces, and tooling.
A little historyOriginally, we started with the
WebBrowsercontrol which is based on Internet Explorer and thus no longer suitable for modern web content. We then created an Edge-based control called
WebView. This control is only available on Windows 10 and can't be included in your app. We've heard your feedback loud and clear that you want a modern and consistent control supported on all Windows versions starting from Windows 7. This is how
WebView2came to life. It is based on the Microsoft Edge Chromium platform, consistent across all Windows versions starting from Windows 7. It receives updates every 6 weeks, enabling you to consume the latest features.
WebView2supports many features such as navigation, web messaging (communication between the application and the
WebView2in many of our applications. One example is the Room Finder panel in the desktop version of Outlook. By using
WebView2, we were able to reuse the code from Outlook's web UI and make it accessible directly to the desktop version.
WebView2is in Preview and we are working on the GA version. As a part of that effort we will be providing designer support for Windows Forms and WPF so you can enjoy the familiarity of drag-and-drop and WYSIWYG experience. See our Roadmap for more information. Today Windows Forms .NET Framework designer experience is already supported and the rest is coming.
Supported platformsA developer preview is available for the following programming platforms:
- Win32 C/C++
- .NET Framework 4.6.2 or later
- .NET Core 3.0 or later
- WinUI 3.0
- Windows 10
- Windows 8.1
- Windows 8
- Windows 7
- Windows Server 2016
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2008 R2
Getting startedCheck out our getting started guides:
- Getting started guide for Windows Forms
- Getting started guide for WPF
- Getting started guide for WinUI 3.0
- Getting started guide for Win32