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
Copy file name to clipboardExpand all lines: microsoft-edge/webview2/get-started/get-started.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ These articles cover how to set up your development tools and create an initial
15
15
| Article | Completed project | Description |
16
16
|---|---|---|
17
17
|[Get started with WebView2 in WinUI 2 (UWP) apps](winui2.md)|[WinUI2_GettingStarted](https://github.com/MicrosoftEdge/WebView2Samples/tree/main/GettingStartedGuides/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. |
18
-
|[Get started with WebView2 in WinUI 3 (Windows App SDK) apps](winui.md)|[WinUI3_GettingStarted](https://github.com/MicrosoftEdge/WebView2Samples/tree/main/GettingStartedGuides/WinUI3_GettingStarted)| Use the **Blank App, Packaged (WinUI in Desktop)** project template, which uses the WindowsAppSDK, which includes the WebView2 SDK. Add an address bar and URL logic. |
18
+
|[Get started with WebView2 in WinUI 3 (Windows App SDK) apps](winui.md)|[WinUI3GetStarted](https://github.com/MicrosoftEdge/WebView2Samples/tree/main/GettingStartedGuides/WinUI3_GettingStarted)| 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. |
19
19
|[Get started with WebView2 in WPF apps](wpf.md)|[WPF_GettingStarted](https://github.com/MicrosoftEdge/WebView2Samples/tree/main/GettingStartedGuides/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. |
20
20
|[Get started with WebView2 in WinForms apps](winforms.md)|[WinForms_GettingStarted](https://github.com/MicrosoftEdge/WebView2Samples/tree/main/GettingStartedGuides/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. |
21
21
|[Get started with WebView2 in Win32 apps](win32.md)|[Win32_GettingStarted](https://github.com/MicrosoftEdge/WebView2Samples/tree/main/GettingStartedGuides/Win32_GettingStarted)| Starts by opening an existing Win32 app project that has the WebView2 SDK and code already added. |
Copy file name to clipboardExpand all lines: microsoft-edge/webview2/get-started/winui.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,8 @@ ms.date: 11/01/2024
10
10
---
11
11
# Get started with WebView2 in WinUI 3 (Windows App SDK) apps
12
12
13
-
This article covers how to set up your development tools and create an initial WebView2 app for WinUI 3 (Windows App SDK), and learn about WebView2 concepts along the way.
13
+
This article covers how to set up your development tools and create an initial WebView2 app for WinUI 3 (Windows App SDK), and learn about WebView2 concepts along the way. You first use the **Blank App, Packaged (WinUI 3 in Desktop)** Visual Studio project template, which uses the WindowsAppSDK, which includes the WebView2 SDK. You then add a WebView2 control, an Address bar and **Go** button, and URL logic to only allow navigating to HTTPS URLs.
14
+
14
15
15
16
In this tutorial, you do the following:
16
17
@@ -26,19 +27,17 @@ In this tutorial, you do the following:
26
27
27
28
1. Insert JavaScript into the WebView2 control, to display a warning alert (dialog) when the user tries to navigate to a URL that has only an `http://` prefix instead of `https://`:
28
29
29
-

30
+

30
31
31
32
32
33
<!-- ------------------------------ -->
33
34
#### Completed project
34
35
35
36
A completed version of this tutorial project (as of 2020) is available in the **WebView2Samples** repo:
The present article has been updated to use the latest Visual Studio project template, and only creates a single project, not a second, "WinUI_Sample (Package)" project like in the WebView2Samples repo's WinUI_Sample.
0 commit comments