From 034238fb9ed3cbe9bea975dd7c2ecc78640276d7 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Fri, 3 Dec 2021 12:56:12 +0800 Subject: [PATCH] fix: fixed #997 --- .../HandyControl_Shared/Controls/SideMenu/SideMenu.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Shared/HandyControl_Shared/Controls/SideMenu/SideMenu.cs b/src/Shared/HandyControl_Shared/Controls/SideMenu/SideMenu.cs index e57821c2b..264e57f2c 100644 --- a/src/Shared/HandyControl_Shared/Controls/SideMenu/SideMenu.cs +++ b/src/Shared/HandyControl_Shared/Controls/SideMenu/SideMenu.cs @@ -95,6 +95,12 @@ private void SideMenuItemSelected(object sender, RoutedEventArgs e) { if (AutoSelect) { + if (_selectedItem != null) + { + _selectedItem.IsSelected = false; + _selectedItem = null; + } + _selectedHeader.SelectDefaultItem(); } _isItemSelected = false;