-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
32 lines (28 loc) · 1001 Bytes
/
Copy pathProgram.cs
File metadata and controls
32 lines (28 loc) · 1001 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
28
29
30
31
32
using Avalonia;
using Avalonia.ReactiveUI;
using System;
using System.Linq;
namespace OsXos;
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)
{
// Hide the Taskbar's keeper: no window, keeps the taskbar hidden until told to stop.
if (OperatingSystem.IsWindows() && args.Contains(Tools.Windows.TaskbarKeeper.Argument))
{
Tools.Windows.WindowsTaskbarKeeperProcess.RunHere();
return;
}
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
}
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace()
.UseReactiveUI();
}