Skip to content

Commit

Permalink
Make SideSheet.SideSheetOpened two way binding by default
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Sep 7, 2024
1 parent ebf54d6 commit 2f1deda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Material.Styles/Controls/SideSheet.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Avalonia.Controls.Metadata;
using Avalonia.Controls.Primitives;
using Avalonia.Controls.Templates;
using Avalonia.Data;
using Avalonia.Interactivity;
using Avalonia.Metadata;
using Material.Styles.Enums;
Expand All @@ -22,7 +23,7 @@ public class SideSheet : ContentControl
AvaloniaProperty.Register<SideSheet, IDataTemplate>(nameof(SideSheetContentTemplate));

public static readonly StyledProperty<bool> SideSheetOpenedProperty =
AvaloniaProperty.Register<SideSheet, bool>(nameof(SideSheetOpened));
AvaloniaProperty.Register<SideSheet, bool>(nameof(SideSheetOpened), defaultBindingMode: BindingMode.TwoWay);

public static readonly StyledProperty<double> SideSheetWidthProperty =
AvaloniaProperty.Register<SideSheet, double>(nameof(SideSheetWidth));
Expand Down

0 comments on commit 2f1deda

Please sign in to comment.