Program.cs 670 B

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