| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- // Copyright (c) The Avalonia Project. All rights reserved.
- // Licensed under the MIT license. See licence.md file in the project root for full license information.
- using System;
- using System.Linq;
- using System.IO;
- using System.Reactive.Linq;
- using Avalonia;
- using Avalonia.Animation;
- using Avalonia.Collections;
- using Avalonia.Controls;
- using Avalonia.Controls.Html;
- using Avalonia.Controls.Primitives;
- using Avalonia.Controls.Shapes;
- using Avalonia.Controls.Templates;
- using Avalonia.Diagnostics;
- using Avalonia.Layout;
- using Avalonia.Media;
- using Avalonia.Media.Imaging;
- #if AVALONIA_GTK
- using Avalonia.Gtk;
- #endif
- using ReactiveUI;
- namespace TestApplication
- {
- internal class Program
- {
- private static void Main(string[] args)
- {
- // The version of ReactiveUI currently included is for WPF and so expects a WPF
- // dispatcher. This makes sure it's initialized.
- System.Windows.Threading.Dispatcher foo = System.Windows.Threading.Dispatcher.CurrentDispatcher;
- var app = new App();
- if (args.Contains("--gtk"))
- {
- app.UseGtk();
- app.UseCairo();
- }
- else
- {
- app.UseWin32();
- // not available until we do the SkiaSharp merge
- //if (args.Contains("--skia"))
- //{
- // app.UseSkia();
- //}
- //else
- {
- app.UseDirect2D();
- }
- }
- app.Run();
- }
- }
- }
|