From ddf6e71813b8452f49227c50273bf8d56dea76a5 Mon Sep 17 00:00:00 2001 From: "L.WLe" <184483622@qq.com> Date: Thu, 14 Aug 2025 11:05:29 +0800 Subject: [PATCH] =?UTF-8?q?Fix(Drawer):=20=E4=BF=AE=E5=A4=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE=E7=9A=84=20IsShow?= =?UTF-8?q?CloseButton=20=E5=B1=9E=E6=80=A7=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AtomUI.Controls/Drawer/Drawer.cs | 1 + src/AtomUI.Controls/Drawer/Themes/DrawerContainerTheme.axaml | 1 + 2 files changed, 2 insertions(+) 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}"/>