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