Program.cs 815 B

123456789101112131415161718192021222324
  1. using Avalonia;
  2. using Avalonia.ReactiveUI;
  3. using System;
  4. namespace AvaloniaApplication1.Models
  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) => BuildAvaloniaApp()
  13. .StartWithClassicDesktopLifetime(args);
  14. // Avalonia configuration, don't remove; also used by visual designer.
  15. public static AppBuilder BuildAvaloniaApp()
  16. => AppBuilder.Configure<App>()
  17. .UsePlatformDetect()
  18. .WithInterFont()
  19. .LogToTrace()
  20. .UseReactiveUI();
  21. }
  22. }