Pārlūkot izejas kodu

Added ScrollBarVisibility.Disabled.

Steven Kirk 7 gadi atpakaļ
vecāks
revīzija
02c6ae3c1a

+ 1 - 0
src/Avalonia.Controls/Primitives/ScrollBar.cs

@@ -99,6 +99,7 @@ namespace Avalonia.Controls.Primitives
                 case ScrollBarVisibility.Visible:
                 case ScrollBarVisibility.Visible:
                     return true;
                     return true;
 
 
+                case ScrollBarVisibility.Disabled:
                 case ScrollBarVisibility.Hidden:
                 case ScrollBarVisibility.Hidden:
                     return false;
                     return false;
 
 

+ 2 - 1
src/Avalonia.Controls/Primitives/ScrollBarVisibility.cs

@@ -5,8 +5,9 @@ namespace Avalonia.Controls.Primitives
 {
 {
     public enum ScrollBarVisibility
     public enum ScrollBarVisibility
     {
     {
+        Disabled,
         Auto,
         Auto,
-        Visible,
         Hidden,
         Hidden,
+        Visible,
     }
     }
 }
 }