Skip to content

Commit e0a59a7

Browse files
committed
Update name of repo sample project
1 parent fb0c0e1 commit e0a59a7

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

microsoft-edge/webview2/get-started/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ These articles cover how to set up your development tools and create an initial
1515
| Article | Completed project | Description |
1616
|---|---|---|
1717
| [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. |
1919
| [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. |
2020
| [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. |
2121
| [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. |
26.2 KB
Loading
Binary file not shown.

microsoft-edge/webview2/get-started/winui.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ ms.date: 11/01/2024
1010
---
1111
# Get started with WebView2 in WinUI 3 (Windows App SDK) apps
1212

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+
1415

1516
In this tutorial, you do the following:
1617

@@ -26,19 +27,17 @@ In this tutorial, you do the following:
2627

2728
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://`:
2829

29-
![The app's WebView2 control displays an alert dialog for non-HTTPS websites](./winui-images/getting-started-script.png)
30+
![The app's WebView2 control displays an alert dialog for non-HTTPS websites](./winui-images/finished-app.png)
3031

3132

3233
<!-- ------------------------------ -->
3334
#### Completed project
3435

3536
A completed version of this tutorial project (as of 2020) is available in the **WebView2Samples** repo:
3637

37-
* Sample name: **WinUI3_GettingStarted**
38+
* Sample name: **WinUI3GetStarted**
3839
* Repo directory: [WinUI3_GettingStarted](https://github.com/MicrosoftEdge/WebView2Samples/tree/main/GettingStartedGuides/WinUI3_GettingStarted)
39-
* Solution file: **WinUI_Sample.sln**
40-
41-
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.
40+
* Solution file: **WinUI3GetStarted.sln**
4241

4342

4443
<!-- ====================================================================== -->
@@ -506,7 +505,7 @@ To display an alert when the user tries to navigate to a non-HTTPS site:
506505

507506
The app's WebView2 control displays an alert dialog for non-HTTPS websites, saying that the non-HTTPS `uri` is not safe:
508507

509-
![The app's WebView2 control displays an alert dialog for non-HTTPS websites](./winui-images/getting-started-script.png)
508+
![The app's WebView2 control displays an alert dialog for non-HTTPS websites](./winui-images/finished-app.png)
510509

511510
1. Close the app.
512511

0 commit comments

Comments
 (0)