Program.cs 736 B

123456789101112131415161718192021222324
  1. using System;
  2. using Avalonia;
  3. using Avalonia.ReactiveUI;
  4. namespace AvaloniaApplication1.Desktop;
  5. class Program
  6. {
  7. // Initialization code. Don't use any Avalonia, third-party APIs or any
  8. // SynchronizationContext-reliant code before AppMain is called: things aren't initialized
  9. // yet and stuff might break.
  10. [STAThread]
  11. public static void Main(string[] args) => BuildAvaloniaApp()
  12. .StartWithClassicDesktopLifetime(args);
  13. // Avalonia configuration, don't remove; also used by visual designer.
  14. public static AppBuilder BuildAvaloniaApp()
  15. => AppBuilder.Configure<App>()
  16. .UsePlatformDetect()
  17. .WithInterFont()
  18. .LogToTrace()
  19. .UseReactiveUI();
  20. }