1
0

App.xaml.cs 863 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) The Avalonia Project. All rights reserved.
  2. // Licensed under the MIT license. See licence.md file in the project root for full license information.
  3. using Avalonia;
  4. using Avalonia.Logging.Serilog;
  5. using Avalonia.Markup.Xaml;
  6. namespace RenderTest
  7. {
  8. public class App : Application
  9. {
  10. public override void Initialize()
  11. {
  12. AvaloniaXamlLoader.Load(this);
  13. }
  14. // TODO: Make this work with GTK/Skia/Cairo depending on command-line args
  15. // again.
  16. static void Main(string[] args) => BuildAvaloniaApp().Start<MainWindow>();
  17. // App configuration, used by the entry point and previewer
  18. static AppBuilder BuildAvaloniaApp()
  19. => AppBuilder.Configure<App>()
  20. .UsePlatformDetect()
  21. .UseReactiveUI()
  22. .LogToDebug();
  23. }
  24. }