You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebView2 UWP is an example of an application that embeds a WebView within a UWP application. It is built as a UWP [Visual Studio 2019](https://visualstudio.microsoft.com/vs/) project and makes use of both cpp and HTML/CSS/JavaScript in the WebView2 environment.
24
+
25
+
The sample showcases simple application structure and handling of webview api.
26
+
27
+
If this is your first time using WebView, we recommend first following the [Getting Started](https://docs.microsoft.com/microsoft-edge/webview2/gettingstarted/wpf) guide, which goes over how to create a WebView2 and walks through some basic WebView2 functionality.
28
+
29
+
To learn more specifics about events and API Handlers in WebView2, you can refer to the [WebView2 Reference Documentation](https://docs.microsoft.com/microsoft-edge/webview2/webview2-api-reference).
30
+
31
+
## Prerequisites
32
+
33
+
-[Microsoft Edge (Chromium)](https://www.microsoftedgeinsider.com/download/) installed on a supported OS. Currently we recommend the latest version of the Edge Canary channel.
34
+
-[Visual Studio](https://visualstudio.microsoft.com/vs/) with .NET support installed.
35
+
- Latest pre-release version of our [WebView2 SDK](https://aka.ms/webviewnuget), which is included in this project.
36
+
- Latest pre-release version of the [WinUI2 SDK](https://aka.ms/webviewnuget), which is included in this project
37
+
38
+
## Build the WebView2 UWP WinUi2 browser
39
+
40
+
Clone the repository and open the solution in Visual Studio. WebView2 & WebUi2 are already included as a NuGet package* in this project.
41
+
42
+
- Clone this repository
43
+
- Open the solution in Visual Studio 2019
44
+
- Set the target you want to build (Debug/Release, AnyCPU)
45
+
- Build the project file: _WebView2_UWP.csproj_
46
+
47
+
That's it! Everything should be ready to just launch the app.
48
+
49
+
*You can get the WebView2 & WinUI2 NugetPackage through the Visual Studio NuGet Package Manager.
50
+
51
+
## Code of Conduct
52
+
53
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [email protected] with any additional questions or comments.
0 commit comments