using System; using ControlCatalog; using Avalonia; namespace WindowsInteropTest { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); AppBuilder.Configure() .UseWin32() .UseDirect2D1() .With(new Win32PlatformOptions { UseWindowsUIComposition = false, ShouldRenderOnUIThread = true // necessary for WPF }) .SetupWithoutStarting(); System.Windows.Forms.Application.Run(new SelectorForm()); } } }