You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
676B

  1. using System;
  2. using Avalonia;
  3. namespace Example.Desktop;
  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. }