From 97a104ee6107b6bd3559ac7e7d81fc32ab07331a Mon Sep 17 00:00:00 2001 From: Vesselin Georgiev Date: Thu, 19 Jan 2023 14:01:55 +0200 Subject: [PATCH] SideDrawer: When TapOustideToClose is false. main content should not be disabled. --- .../Primitives/Primitives.UWP/SideDrawer/RadSideDrawer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Controls/Primitives/Primitives.UWP/SideDrawer/RadSideDrawer.cs b/Controls/Primitives/Primitives.UWP/SideDrawer/RadSideDrawer.cs index d33fedb..66747df 100644 --- a/Controls/Primitives/Primitives.UWP/SideDrawer/RadSideDrawer.cs +++ b/Controls/Primitives/Primitives.UWP/SideDrawer/RadSideDrawer.cs @@ -705,8 +705,8 @@ namespace Telerik.UI.Xaml.Controls.Primitives var sideDrawer = d as RadSideDrawer; var mainContent = sideDrawer.MainContent as FrameworkElement; - if (mainContent != null) - { + if (mainContent != null && sideDrawer.TapOutsideToClose) + { mainContent.IsHitTestVisible = (DrawerState)e.NewValue == DrawerState.Closed; } @@ -742,7 +742,7 @@ namespace Telerik.UI.Xaml.Controls.Primitives if (sideDrawer.IsTemplateApplied) { - sideDrawer.InvalidateMeasure(); + sideDrawer.ResetDrawer(); } } private static void OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)