Skip to content

Commit d480172

Browse files
authored
Replace WinUI3GetStarted 2020 project by result of latest project template (#257)
* Replace WinUI3 2020 project by result of latest * revert urlFragment * readme say updated date for Maint
1 parent 6bf4af5 commit d480172

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+271
-3194
lines changed

GettingStartedGuides/WinUI3_GettingStarted/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ urlFragment: WinUI3_GettingStarted
1010
# Get started with WebView2 in WinUI 3 (Windows App SDK) apps
1111

1212
<!-- only enough info to differentiate this sample vs the others; what is different about this sample compared to the sibling samples? -->
13-
This sample, **WinUI3_GettingStarted**, is the completed Visual Studio project that results from following the steps in the tutorial [Get started with WebView2 in WinUI 3 (Windows App SDK) apps](https://learn.microsoft.com/microsoft-edge/webview2/get-started/winui).
13+
This sample, **WinUI3GetStarted**, is the completed Visual Studio project that results from following the steps in the tutorial [Get started with WebView2 in WinUI 3 (Windows App SDK) apps](https://learn.microsoft.com/microsoft-edge/webview2/get-started/winui).
1414

15-
![The running app from the finished WinUI 3 (Windows App SDK) tutorial](screenshots/getting-started-part-3.png)
15+
![The running app from the finished WinUI 3 (Windows App SDK) tutorial](screenshots/finished-app.png)
16+
17+
Project updated Nov. 1, 2024.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.11.35327.3
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinUI3GetStarted", "WinUI3GetStarted\WinUI3GetStarted.csproj", "{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|ARM64 = Debug|ARM64
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
13+
Release|ARM64 = Release|ARM64
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Debug|ARM64.ActiveCfg = Debug|ARM64
19+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Debug|ARM64.Build.0 = Debug|ARM64
20+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Debug|ARM64.Deploy.0 = Debug|ARM64
21+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Debug|x64.ActiveCfg = Debug|x64
22+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Debug|x64.Build.0 = Debug|x64
23+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Debug|x64.Deploy.0 = Debug|x64
24+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Debug|x86.ActiveCfg = Debug|x86
25+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Debug|x86.Build.0 = Debug|x86
26+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Debug|x86.Deploy.0 = Debug|x86
27+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Release|ARM64.ActiveCfg = Release|ARM64
28+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Release|ARM64.Build.0 = Release|ARM64
29+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Release|ARM64.Deploy.0 = Release|ARM64
30+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Release|x64.ActiveCfg = Release|x64
31+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Release|x64.Build.0 = Release|x64
32+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Release|x64.Deploy.0 = Release|x64
33+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Release|x86.ActiveCfg = Release|x86
34+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Release|x86.Build.0 = Release|x86
35+
{FBF1E5FC-C14D-4C2D-88D4-6B8B55821E52}.Release|x86.Deploy.0 = Release|x86
36+
EndGlobalSection
37+
GlobalSection(SolutionProperties) = preSolution
38+
HideSolutionNode = FALSE
39+
EndGlobalSection
40+
GlobalSection(ExtensibilityGlobals) = postSolution
41+
SolutionGuid = {1334E548-2468-4E8F-84AF-B2B85C674856}
42+
EndGlobalSection
43+
EndGlobal
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Application
3+
x:Class="WinUI3GetStarted.App"
4+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6+
xmlns:local="using:WinUI3GetStarted">
7+
<Application.Resources>
8+
<ResourceDictionary>
9+
<ResourceDictionary.MergedDictionaries>
10+
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
11+
<!-- Other merged dictionaries here -->
12+
</ResourceDictionary.MergedDictionaries>
13+
<!-- Other app resources here -->
14+
</ResourceDictionary>
15+
</Application.Resources>
16+
</Application>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
using System;
1+
using Microsoft.UI.Xaml;
2+
using Microsoft.UI.Xaml.Controls;
3+
using Microsoft.UI.Xaml.Controls.Primitives;
4+
using Microsoft.UI.Xaml.Data;
5+
using Microsoft.UI.Xaml.Input;
6+
using Microsoft.UI.Xaml.Media;
7+
using Microsoft.UI.Xaml.Navigation;
8+
using Microsoft.UI.Xaml.Shapes;
9+
using System;
210
using System.Collections.Generic;
311
using System.IO;
412
using System.Linq;
@@ -7,17 +15,11 @@
715
using Windows.ApplicationModel.Activation;
816
using Windows.Foundation;
917
using Windows.Foundation.Collections;
10-
using Microsoft.UI.Threading;
11-
using Microsoft.UI.Xaml;
12-
using Microsoft.UI.Xaml.Controls;
13-
using Microsoft.UI.Xaml.Controls.Primitives;
14-
using Microsoft.UI.Xaml.Data;
15-
using Microsoft.UI.Xaml.Input;
16-
using Microsoft.UI.Xaml.Media;
17-
using Microsoft.UI.Xaml.Navigation;
18-
using Microsoft.UI.Xaml.Shapes;
1918

20-
namespace WinUI_Sample
19+
// To learn more about WinUI, the WinUI project structure,
20+
// and more about our project templates, see: http://aka.ms/winui-project-info.
21+
22+
namespace WinUI3GetStarted
2123
{
2224
/// <summary>
2325
/// Provides application-specific behavior to supplement the default Application class.
@@ -31,12 +33,10 @@ public partial class App : Application
3133
public App()
3234
{
3335
this.InitializeComponent();
34-
this.Suspending += OnSuspending;
3536
}
3637

3738
/// <summary>
38-
/// Invoked when the application is launched normally by the end user. Other entry points
39-
/// will be used such as when the application is launched to open a specific file.
39+
/// Invoked when the application is launched.
4040
/// </summary>
4141
/// <param name="args">Details about the launch request and process.</param>
4242
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
@@ -45,18 +45,6 @@ protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs ar
4545
m_window.Activate();
4646
}
4747

48-
/// <summary>
49-
/// Invoked when application execution is being suspended. Application state is saved
50-
/// without knowing whether the application will be terminated or resumed with the contents
51-
/// of memory still intact.
52-
/// </summary>
53-
/// <param name="sender">The source of the suspend request.</param>
54-
/// <param name="e">Details about the suspend request.</param>
55-
private void OnSuspending(object sender, SuspendingEventArgs e)
56-
{
57-
// Save application state and stop any background activity
58-
}
59-
6048
private Window m_window;
6149
}
6250
}
432 Bytes
Loading
5.25 KB
Loading
Loading
637 Bytes
Loading
Loading
456 Bytes
Loading

0 commit comments

Comments
 (0)