Getting Started tutorials
These articles cover how to set up your development tools and create an initial WebView2 app, like a Hello World app with basic functionality. Learn about WebView2 concepts along the way.
Article | Completed project | Description |
---|---|---|
Get started with WebView2 in WinUI 2 (UWP) apps | WinUI2_GettingStarted | Use C# Blank App (Universal Windows) project template and install the Microsoft.UI.Xaml package (WinUI 2), which installs the Microsoft.Web.WebView2 SDK package as a dependency. |
Get started with WebView2 in WinUI 3 (Windows App SDK) apps | WinUI3GetStarted | Use the Blank App, Packaged (WinUI 3 in Desktop) Visual Studio project template, which uses the WindowsAppSDK, which includes the WebView2 SDK. You add a WebView2 control, an Address bar and Go button, and URL logic to only allow navigating to HTTPS URLs. |
Get started with WebView2 in WPF apps | WPF_GettingStarted | Use the WPF Application or WPF App (.NET Framework) project template to create a WPF app, and then install the WebView2 SDK for the project to add WebView2. |
Get started with WebView2 in WinForms apps | WinForms_GettingStarted | Use the C# Windows Forms App (.NET Framework) project template to create a WinForms project, then install the Microsoft.Web.WebView2 SDK package for the WinForms project. |
Get started with WebView2 in Win32 apps | Win32_GettingStarted | Starts by opening an existing Win32 app project that has the WebView2 SDK and code already added. |
Get started with WebView2 in HoloLens 2 Unity apps | Hololens2_GettingStarted | Starts by opening an existing Unity project that has the WebView2 SDK package and sample code added. |
See also
- Microsoft Edge WebView2 - initial introduction to WebView2, at
developer.microsoft.com
. - Sample apps - framework-specific sample apps that showcase more of the WebView2 APIs than the Getting Started tutorials.
- WebView2Samples repo - contains completed Visual Studio projects that result from following the steps in these Getting Started tutorials, as well as sample apps and deployment samples.