Browse Source

#1798 Fix binding checkbox with three state.

MonkAlex 7 years ago
parent
commit
c7d565fd0c
1 changed files with 1 additions and 1 deletions
  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 =