mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-28 14:20:47 +08:00
Merge pull request #185 from yaobiao131/release/5.0
fix: 修复navmenu关闭报错 #162
This commit is contained in:
@@ -246,7 +246,7 @@ public class NavMenu : ItemsControl,
|
||||
i.Close();
|
||||
}
|
||||
|
||||
SetCurrentValue(IsOpenProperty, false);
|
||||
IsOpen = false;
|
||||
SetCurrentValue(SelectedItemProperty, null);
|
||||
|
||||
RaiseEvent(new RoutedEventArgs
|
||||
@@ -263,7 +263,7 @@ public class NavMenu : ItemsControl,
|
||||
return;
|
||||
}
|
||||
|
||||
SetCurrentValue(IsOpenProperty, true);
|
||||
IsOpen = true;
|
||||
|
||||
RaiseEvent(new RoutedEventArgs
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user