Browse Source

Merge pull request #866 from KvanTTT/master

TwoWay binding by default for IsExpanded property in Expander control
Steven Kirk 8 years ago
parent
commit
a4b3377b13
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Avalonia.Controls/Expander.cs

+ 2 - 1
src/Avalonia.Controls/Expander.cs

@@ -31,7 +31,8 @@ namespace Avalonia.Controls
             AvaloniaProperty.RegisterDirect<Expander, bool>(
                 nameof(IsExpanded),
                 o => o.IsExpanded,
-                (o, v) => o.IsExpanded = v);
+                (o, v) => o.IsExpanded = v,
+                defaultBindingMode: Data.BindingMode.TwoWay);
 
         static Expander()
         {