Program.cs 822 B

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