mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-19 06:56:27 +02:00
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using System;
|
|
using Avalonia;
|
|
|
|
namespace UVtools.WPF
|
|
{
|
|
public static class Program
|
|
{
|
|
public static string[] Args;
|
|
// Initialization code. Don't use any Avalonia, third-party APIs or any
|
|
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
|
|
// yet and stuff might break.
|
|
[STAThread]
|
|
public static void Main(string[] args)
|
|
{
|
|
Args = args;
|
|
|
|
BuildAvaloniaApp()
|
|
.StartWithClassicDesktopLifetime(args);
|
|
}
|
|
|
|
// Avalonia configuration, don't remove; also used by visual designer.
|
|
public static AppBuilder BuildAvaloniaApp()
|
|
=> AppBuilder.Configure<App>()
|
|
.UsePlatformDetect()
|
|
.With(new Win32PlatformOptions { AllowEglInitialization = true})
|
|
.With(new X11PlatformOptions { UseGpu = true, UseEGL = true })
|
|
.With(new MacOSPlatformOptions { ShowInDock = true })
|
|
.With(new AvaloniaNativePlatformOptions { UseGpu = true })
|
|
.UseSkia()
|
|
.LogToDebug();
|
|
}
|
|
}
|