Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
main
Switch branches/tags
WebView2Samples/SampleApps/WV2CDPExtensionWPFSample/
WebView2Samples/SampleApps/WV2CDPExtensionWPFSample/

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
description extendedZipContent languages page_type products urlFragment
Demonstrate the usage patterns of WebView2 CDP Extension in WPF.
path target
SharedContent
SharedContent
path target
LICENSE
LICENSE
csharp
sample
microsoft-edge
WV2CDPExtensionSample

WebView2 CDP Extension

This application built with the WebView2 CDP Extension that defines all CDP methods, events, and types.

The WV2CDPExtensionSample showcases of Utilizing Chrome DevTools Protocol functions using a DevToolsProtocolHelper object in WebView2. It is built as a WPF Visual Studio 2019 project and makes use of C# in the WebView2 environment.

If this is your first time using WebView2, we recommend first following the Getting Started guide, which goes over how to create a WebView2 and walks through some basic WebView2 functionality.

Prerequisites

Build the WebView2 WPF Browser

Clone the repository and open the solution in Visual Studio. WebView2 and WebView2 DevToolsProtocolExtension is already included as a NuGet package* in this project.

  • Open the solution in Visual Studio 2019**
  • Set the target you want to build (Debug/Release, AnyCPU)
  • Build the project file: WV2CDPExtensionSample.csproj

That's it! Everything should be ready to just launch the app.

*You can get the WebView2 and WebView2 DevToolsProtocolExtension NugetPackage through the Visual Studio NuGet Package Manager.

**You can also use Visual Studio 2017 by changing the project's Platform Toolset in Project Properties/Configuration properties/General/Platform Toolset. You might also need to change the Windows SDK to the latest version available to you.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.