Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 3.11 KB

File metadata and controls

39 lines (29 loc) · 3.11 KB
title Sample apps
description Sample apps for WebView2, for various frameworks or platforms including WinUI 2 (UWP), WinUI 3 (Windows App SDK), WPF, WPF with Chrome DevTools Protocol extension, WinForms, Win32/C++, and Win32 with Visual Composition.
author MSEdgeTeam
ms.author msedgedevrel
ms.topic conceptual
ms.prod microsoft-edge
ms.technology webview
ms.date 07/18/2022

Sample apps

Sample apps that use WebView2 are available in the WebView2Samples repo, for various frameworks or platforms.

Article Sample Description
Win32 sample app (WebView2APISample) WebView2APISample Main sample; extensive.
Win32 sample app with Visual Composition WebView2SampleWinComp  
WebView2Browser (Win32 C++/JS) WebView2Browser repo Uses multiple WebView2 instances. A major sample; has its own repo.
WinUI 2 (UWP) sample app webview2_sample_uwp  
pending pending Tutorial.
Completed tutorial project.
WPF sample app WebView2WpfBrowser  
WPF app with CDP extension WV2CDPExtensionWPFSample  
WinForms sample app WebView2WindowsFormsBrowser  

These articles provide the specific steps to set up your machine and build, run, and update each sample.

Sample apps vs. completed Getting Started tutorials

The sample apps are the source of the sample code snippets that are shown in the API Reference docs and conceptual docs.

For some frameworks or platforms, the samples repo contains both a completed Getting Started tutorial and a sample app. These sample apps showcase more of the WebView2 APIs than the Getting Started tutorials.

See also