Parcourir la source

#1798 Fix binding checkbox with three state.

MonkAlex il y a 7 ans
Parent
commit
c7d565fd0c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Avalonia.Controls/Primitives/ToggleButton.cs

+ 1 - 1
src/Avalonia.Controls/Primitives/ToggleButton.cs

@@ -14,7 +14,7 @@ namespace Avalonia.Controls.Primitives
                 nameof(IsChecked),
                 o => o.IsChecked,
                 (o, v) => o.IsChecked = v,
-                unsetValue: false,
+                unsetValue: null,
                 defaultBindingMode: BindingMode.TwoWay);
 
         public static readonly StyledProperty<bool> IsThreeStateProperty =