Skip to content

linymgit/WebView2Samples

 
 

Repository files navigation

WebView2 Samples

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!

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.

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

Comprehensive API Sample

UWP/WinUI

Comprehensive API Sample

The UWP WinUI Sample can be found in the WinUI Controls Gallery.

Next Steps

About

Microsoft Edge WebView2 samples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 80.9%
  • C# 9.3%
  • HTML 6.8%
  • C 2.3%
  • Other 0.7%