예제 #1
0
        static TestBase()
        {
#if PERSPEX_CAIRO
            CairoPlatform.Initialize();
#else
            Direct2D1Platform.Initialize();
#endif
        }
예제 #2
0
        static TestBase()
        {
#if AVALONIA_CAIRO
            CairoPlatform.Initialize();
#elif AVALONIA_SKIA
            SkiaPlatform.Initialize();
#else
            Direct2D1Platform.Initialize();
#endif
        }
예제 #3
0
        static TestBase()
        {
#if AVALONIA_CAIRO
            CairoPlatform.Initialize();
#elif AVALONIA_SKIA
            SkiaPlatform.Initialize();
#else
            Direct2D1Platform.Initialize();
#endif
            AvaloniaLocator.CurrentMutable
            .Bind <IPlatformThreadingInterface>()
            .ToConstant(threadingInterface);
        }
예제 #4
0
파일: App.cs 프로젝트: csuffyy/Perspex
        public App()
            : base(new DefaultTheme())
        {
            this.RegisterServices();
#if PERSPEX_CAIRO
            CairoPlatform.Initialize();
#else
            Direct2D1Platform.Initialize();
#endif

#if PERSPEX_GTK
            GtkPlatform.Initialize();
#else
            Win32Platform.Initialize();
#endif
        }