b7ea335115 | ||
---|---|---|
.github | ||
GettingStartedGuides | ||
SampleApps | ||
media | ||
.gitignore | ||
README.md |
README.md
WebView2 Samples
This repository contains getting started apps as well as sample apps that demonstrate the features and usage patterns of WebView2. As we add more features to WebView2, we will regularly update our samples.
In the GettingStarted
folder you will find the starter code for its respective guide listed below:
In the Sample Apps
folder you will find:
- WebView2Samples.sln - a collective solution that includes WebView2APISample.vcxproj, WebView2SampleWinComp.vcxproj, WebView2WpfBrowser.csproj, WebView2WindowsFormsBrowser.csproj, WV2DeploymentWiXCustomActionSample, and WV2DeploymentWiXBurnBundleSample.
Please leave feedback in our our feedback repo!
Win32 C/C++
Getting Started
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.
Comprehensive API Sample
The Win32 C++ Sample can be found in the WebView2APISample directory and WebView2SampleWinComp directory.
Multiple WebViews Sample
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.
.NET (WPF and Windows Forms)
Getting Started
- Checkout the WPF getting started guide for WebView2 in WPF applications
- Checkout the Windows Forms getting started guide for WebView2 in WinForms applications
Comprehensive API Sample
- The WPF Sample can be found in the WebView2WpfBrowser directory.
- The Windows Forms Sample can be found in the WebView2WindowsFormsBrowser directory.
UWP/WinUI
Comprehensive API Sample
The UWP WinUI Sample can be found in the WinUI Controls Gallery.
WebView2 Deployment
To help developers understand how to deploy Evergreen WebView2 Runtime with your applications, we have the following samples:
- WV2DeploymentWiXCustomActionSample creates a WiX installer for WebView2APISample and uses WiX Custom Action to chain-install the Evergreen WebView2 Runtime.
- WV2DeploymentWiXBurnBundleSample creates a WiX installer for WebView2APISample and uses WiX Burn Bundle to chain-install the Evergreen WebView2 Runtime.
- WV2DeploymentVSInstallerSample uses the Microsoft Visual Studio Installer Projects to create an installer for WebView2APISample and chain-install the Evergreen WebView2 Runtime.
Next Steps
- Checkout Introduction to Microsoft Edge WebView2 to learn more about WebView2
- Please leave us feedback specifically about the samples in this repo.
- Please leave us feedback about the WebView2 control in our feedback repo.