diff --git a/Material.Styles/Controls/SideSheet.axaml.cs b/Material.Styles/Controls/SideSheet.axaml.cs index 72bdcfd5..6c5e7647 100644 --- a/Material.Styles/Controls/SideSheet.axaml.cs +++ b/Material.Styles/Controls/SideSheet.axaml.cs @@ -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; @@ -22,7 +23,7 @@ public class SideSheet : ContentControl AvaloniaProperty.Register(nameof(SideSheetContentTemplate)); public static readonly StyledProperty SideSheetOpenedProperty = - AvaloniaProperty.Register(nameof(SideSheetOpened)); + AvaloniaProperty.Register(nameof(SideSheetOpened), defaultBindingMode: BindingMode.TwoWay); public static readonly StyledProperty SideSheetWidthProperty = AvaloniaProperty.Register(nameof(SideSheetWidth));