-
Notifications
You must be signed in to change notification settings - Fork 8
/
App.axaml.cs
31 lines (26 loc) · 829 Bytes
/
App.axaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
using Avalonia.Themes.Fluent;
using Avalonia.Themes.Simple;
using CustomTitleBarTemplate.Views;
namespace CustomTitleBarTemplate
{
public class App : Application
{
public static FluentTheme FluentTheme = new FluentTheme();
public static SimpleTheme SimpleTheme = new SimpleTheme();
public override void Initialize()
{
AvaloniaXamlLoader.Load(this);
}
public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.MainWindow = new MainWindow();
}
base.OnFrameworkInitializationCompleted();
}
}
}