1234567891011121314151617181920212223242526272829303132 |
- using System;
- using Avalonia;
- using InABox.Avalonia.Platform;
- using InABox.Avalonia.Platform.Desktop;
- namespace PRS.Avalonia.Desktop;
- sealed class Program
- {
- // 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) => BuildAvaloniaApp()
- .StartWithClassicDesktopLifetime(args);
- // Avalonia configuration, don't remove; also used by visual designer.
- public static AppBuilder BuildAvaloniaApp()
- {
-
- PlatformTools.Register<IPdfRenderer, Desktop_PdfRenderer>();
- PlatformTools.Register<IBluetooth, Desktop_Bluetooth>();
- PlatformTools.Register<IAppVersion, Desktop_AppVersion>();
-
- return AppBuilder.Configure<App>()
- .UsePlatformDetect()
- .WithInterFont()
- .LogToTrace();
- }
-
-
- }
|