-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
27 lines (24 loc) · 803 Bytes
/
Program.cs
File metadata and controls
27 lines (24 loc) · 803 Bytes
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
using Avalonia;
using Avalonia.ReactiveUI;
using Avalonia.Svg.Skia;
using System;
namespace Atelier;
sealed class Program
{
// Initialization code. Don't use any Avalonia, FreeDesktop... or any other
// standard .NET libraries until ApplicationMain is called: entropy causes fast
// things to go wrong.
[STAThread]
public static void Main(string[] args) => BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp()
{
GC.KeepAlive(typeof(SvgImageExtension).Assembly);
return AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace()
.UseReactiveUI();
}
}