feat: stop changing selection after checking canselect. revert focus change in this case.
This commit is contained in:
@@ -381,6 +381,10 @@ public class NavMenuItem : HeaderedItemsControl
|
||||
|
||||
internal void SelectItem(NavMenuItem item)
|
||||
{
|
||||
if (item == this && RootMenu?.CanChangeSelection(item) != true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
SetCurrentValue(IsSelectedProperty, item == this);
|
||||
SetCurrentValue(IsHighlightedProperty, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user