SideDrawer: When TapOustideToClose is false. main content should not be disabled.

This commit is contained in:
Vesselin Georgiev 2023-01-19 14:01:55 +02:00
Родитель b9805b36e6
Коммит 97a104ee61
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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)