Преглед на файлове

make win.ui.comp the default when running on win10 and compatible gpu is used.

Dan Walmsley преди 5 години
родител
ревизия
099909d4e2
променени са 2 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 1 2
      samples/ControlCatalog.NetCore/Program.cs
  2. 1 1
      src/Windows/Avalonia.Win32/Win32Platform.cs

+ 1 - 2
samples/ControlCatalog.NetCore/Program.cs

@@ -117,8 +117,7 @@ namespace ControlCatalog.NetCore
                 .With(new Win32PlatformOptions
                 .With(new Win32PlatformOptions
                 {
                 {
                     EnableMultitouch = true,
                     EnableMultitouch = true,
-                    AllowEglInitialization = true,
-                    UseWindowsUIComposition = true
+                    AllowEglInitialization = true
                 })
                 })
                 .UseSkia()
                 .UseSkia()
                 .UseReactiveUI()
                 .UseReactiveUI()

+ 1 - 1
src/Windows/Avalonia.Win32/Win32Platform.cs

@@ -47,7 +47,7 @@ namespace Avalonia
         /// Supported on Windows 10 build 16299 and above. Ignored on other versions.
         /// Supported on Windows 10 build 16299 and above. Ignored on other versions.
         /// This is recommended if you need to use AcrylicBlur or acrylic in your applications.
         /// This is recommended if you need to use AcrylicBlur or acrylic in your applications.
         /// </remarks>
         /// </remarks>
-        public bool UseWindowsUIComposition { get; set; }
+        public bool UseWindowsUIComposition { get; set; } = true;
     }
     }
 }
 }