This repository contains samples that demonstrate the features and usage patterns of WebView2. As we add more features to WebView2, we will regularly update our samples.
WebView2Samples.sln is a collective soluction that inlcudes WebView2APISample.vcxproj, WebView2WpfBrowser.csproj, and WebView2WindowsFormsBrowser.csproj.
Please leave feedback in our our feedback repo!
Start with the Win32 WebView2 getting-started guide to learn how to setup a WebView within a Win32 application.
This will require downloading the Getting Started Guide directory.
The Win32 C++ Sample can be found in the WebView2APISample directory.
The WebView2Browser is an additional Win32 WebView2 sample project that uses multiple WebViews in a single application. Clone this project by running git clone https://github.com/MicrosoftEdge/WebView2Browser.git
.
Follow the WebView2Browser guide to learn how to build an application that utilizes multiple WebViews.
- Checkout the WPF getting started guide for WebView2 in WPF applications
- Checkout the Windows Forms getting started guide for WebView2 in WinForms applications
- The WPF Sample can be found in the WebView2WpfBrowser directory.
- The Windows Forms Sample can be found in the WebView2WindowsFormsBrowser directory.
The UWP WinUI Sample can be found in the WinUI Controls Gallery.
- Checkout Introduction to Microsoft Edge WebView2 to learn more about WebView2
- Please leave us feedback in our feedback repo.