Skip to content

Commit 589a3c1

Browse files
committed
Initial commit - WinUI3 project
0 parents  commit 589a3c1

20 files changed

+372
-0
lines changed

.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# Build results
11+
[Dd]ebug/
12+
[Dd]ebugPublic/
13+
[Rr]elease/
14+
[Rr]eleases/
15+
x64/
16+
x86/
17+
[Aa][Rr][Mm]/
18+
[Aa][Rr][Mm]64/
19+
bld/
20+
[Bb]in/
21+
[Oo]bj/
22+
[Ll]og/
23+
24+
# Visual Studio cache/options directory
25+
.vs/
26+
27+
# MSTest test Results
28+
[Tt]est[Rr]esult*/
29+
[Bb]uild[Ll]og.*
30+
31+
# NuGet Packages
32+
*.nupkg
33+
**/packages/*
34+
35+
# Visual Studio cache files
36+
*.suo
37+
*.user
38+
*.userosscache
39+
*.sln.docstates
40+
41+
# ReSharper
42+
_ReSharper*/
43+
*.[Rr]e[Ss]harper
44+
*.DotSettings.user
45+
46+
# AppPackages
47+
AppPackages/
48+
BundleArtifacts/
49+
Package.StoreAssociation.xml
50+
_pkginfo.txt

App.xaml

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="WinUI3Crash.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:WinUI3Crash">
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>

App.xaml.cs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Runtime.InteropServices.WindowsRuntime;
6+
using Microsoft.UI.Xaml;
7+
using Microsoft.UI.Xaml.Controls;
8+
using Microsoft.UI.Xaml.Controls.Primitives;
9+
using Microsoft.UI.Xaml.Data;
10+
using Microsoft.UI.Xaml.Input;
11+
using Microsoft.UI.Xaml.Media;
12+
using Microsoft.UI.Xaml.Navigation;
13+
using Microsoft.UI.Xaml.Shapes;
14+
using Windows.ApplicationModel;
15+
using Windows.ApplicationModel.Activation;
16+
using Windows.Foundation;
17+
using Windows.Foundation.Collections;
18+
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 WinUI3Crash
23+
{
24+
/// <summary>
25+
/// Provides application-specific behavior to supplement the default Application class.
26+
/// </summary>
27+
public partial class App : Application
28+
{
29+
private Window? _window;
30+
31+
/// <summary>
32+
/// Initializes the singleton application object. This is the first line of authored code
33+
/// executed, and as such is the logical equivalent of main() or WinMain().
34+
/// </summary>
35+
public App()
36+
{
37+
InitializeComponent();
38+
}
39+
40+
/// <summary>
41+
/// Invoked when the application is launched.
42+
/// </summary>
43+
/// <param name="args">Details about the launch request and process.</param>
44+
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
45+
{
46+
_window = new MainWindow();
47+
_window.Activate();
48+
}
49+
}
50+
}
432 Bytes
Loading

Assets/SplashScreen.scale-200.png

5.25 KB
Loading
1.71 KB
Loading
637 Bytes
Loading
283 Bytes
Loading

Assets/StoreLogo.png

456 Bytes
Loading
2.05 KB
Loading

0 commit comments

Comments
 (0)