diff --git a/src/AtomUI.Controls/Drawer/Drawer.cs b/src/AtomUI.Controls/Drawer/Drawer.cs index 1392e2701..7f3c8c9a2 100644 --- a/src/AtomUI.Controls/Drawer/Drawer.cs +++ b/src/AtomUI.Controls/Drawer/Drawer.cs @@ -377,6 +377,7 @@ public class Drawer : Control, BindUtils.RelayBind(this, PlacementProperty, _container, DrawerContainer.PlacementProperty); BindUtils.RelayBind(this, TitleProperty, _container, DrawerContainer.TitleProperty); BindUtils.RelayBind(this, IsShowMaskProperty, _container, DrawerContainer.IsShowMaskProperty); + BindUtils.RelayBind(this, IsShowCloseButtonProperty, _container, DrawerContainer.IsShowCloseButtonProperty); BindUtils.RelayBind(this, IsMotionEnabledProperty, _container, DrawerContainer.IsMotionEnabledProperty); BindUtils.RelayBind(this, CloseWhenClickOnMaskProperty, _container, DrawerContainer.CloseWhenClickOnMaskProperty); diff --git a/src/AtomUI.Controls/Drawer/Themes/DrawerContainerTheme.axaml b/src/AtomUI.Controls/Drawer/Themes/DrawerContainerTheme.axaml index 8913ece3b..05b9d8513 100644 --- a/src/AtomUI.Controls/Drawer/Themes/DrawerContainerTheme.axaml +++ b/src/AtomUI.Controls/Drawer/Themes/DrawerContainerTheme.axaml @@ -24,6 +24,7 @@ Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" IsMotionEnabled="{TemplateBinding IsMotionEnabled}" + IsShowCloseButton="{TemplateBinding IsShowCloseButton}" DialogSize="{TemplateBinding DialogSize}"/>