Program.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 System;
  4. using System.Linq;
  5. using System.IO;
  6. using System.Reactive.Linq;
  7. using Avalonia;
  8. using Avalonia.Animation;
  9. using Avalonia.Collections;
  10. using Avalonia.Controls;
  11. using Avalonia.Controls.Html;
  12. using Avalonia.Controls.Primitives;
  13. using Avalonia.Controls.Shapes;
  14. using Avalonia.Controls.Templates;
  15. using Avalonia.Diagnostics;
  16. using Avalonia.Layout;
  17. using Avalonia.Media;
  18. using Avalonia.Media.Imaging;
  19. #if AVALONIA_GTK
  20. using Avalonia.Gtk;
  21. #endif
  22. using ReactiveUI;
  23. namespace TestApplication
  24. {
  25. internal class Program
  26. {
  27. private static void Main(string[] args)
  28. {
  29. // The version of ReactiveUI currently included is for WPF and so expects a WPF
  30. // dispatcher. This makes sure it's initialized.
  31. System.Windows.Threading.Dispatcher foo = System.Windows.Threading.Dispatcher.CurrentDispatcher;
  32. var app = new App();
  33. AppBuilder.Configure(app)
  34. .UsePlatformDetect()
  35. .SetupWithoutStarting();
  36. app.Run();
  37. }
  38. }
  39. }