Skip to content

Commit d41a24e

Browse files
committed
Add WinUI project
1 parent f95f747 commit d41a24e

16 files changed

+271
-0
lines changed

Flow.Launcher.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModernWpf", "ModernWpf\Mode
6969
EndProject
7070
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModernWpf.Controls", "ModernWpf\ModernWpf.Controls\ModernWpf.Controls.csproj", "{F2B2048C-2CD6-6D4D-418A-86E69E716615}"
7171
EndProject
72+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Flow.LauncherWinUI", "Flow.LauncherWinUI\Flow.LauncherWinUI.csproj", "{261D8C91-19BD-4E26-BC3B-D1AE97772660}"
73+
EndProject
7274
Global
7375
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7476
Debug|Any CPU = Debug|Any CPU
@@ -283,6 +285,24 @@ Global
283285
{F2B2048C-2CD6-6D4D-418A-86E69E716615}.Release|x64.Build.0 = Release|Any CPU
284286
{F2B2048C-2CD6-6D4D-418A-86E69E716615}.Release|x86.ActiveCfg = Release|Any CPU
285287
{F2B2048C-2CD6-6D4D-418A-86E69E716615}.Release|x86.Build.0 = Release|Any CPU
288+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Debug|Any CPU.ActiveCfg = Debug|x64
289+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Debug|Any CPU.Build.0 = Debug|x64
290+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Debug|Any CPU.Deploy.0 = Debug|x64
291+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Debug|x64.ActiveCfg = Debug|x64
292+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Debug|x64.Build.0 = Debug|x64
293+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Debug|x64.Deploy.0 = Debug|x64
294+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Debug|x86.ActiveCfg = Debug|x86
295+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Debug|x86.Build.0 = Debug|x86
296+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Debug|x86.Deploy.0 = Debug|x86
297+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Release|Any CPU.ActiveCfg = Release|x64
298+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Release|Any CPU.Build.0 = Release|x64
299+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Release|Any CPU.Deploy.0 = Release|x64
300+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Release|x64.ActiveCfg = Release|x64
301+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Release|x64.Build.0 = Release|x64
302+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Release|x64.Deploy.0 = Release|x64
303+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Release|x86.ActiveCfg = Release|x86
304+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Release|x86.Build.0 = Release|x86
305+
{261D8C91-19BD-4E26-BC3B-D1AE97772660}.Release|x86.Deploy.0 = Release|x86
286306
EndGlobalSection
287307
GlobalSection(SolutionProperties) = preSolution
288308
HideSolutionNode = FALSE

Flow.LauncherWinUI/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="Flow.LauncherWinUI.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:Flow.LauncherWinUI">
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>

Flow.LauncherWinUI/App.xaml.cs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 Flow.LauncherWinUI;
23+
/// <summary>
24+
/// Provides application-specific behavior to supplement the default Application class.
25+
/// </summary>
26+
public partial class App : Application
27+
{
28+
private Window? _window;
29+
30+
/// <summary>
31+
/// Initializes the singleton application object. This is the first line of authored code
32+
/// executed, and as such is the logical equivalent of main() or WinMain().
33+
/// </summary>
34+
public App()
35+
{
36+
InitializeComponent();
37+
}
38+
39+
/// <summary>
40+
/// Invoked when the application is launched.
41+
/// </summary>
42+
/// <param name="args">Details about the launch request and process.</param>
43+
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
44+
{
45+
_window = new MainWindow();
46+
_window.Activate();
47+
}
48+
}
432 Bytes
Loading
5.25 KB
Loading
1.71 KB
Loading
637 Bytes
Loading
283 Bytes
Loading
456 Bytes
Loading
2.05 KB
Loading

0 commit comments

Comments
 (0)