feat: temp solution for highlight.

This commit is contained in:
rabbitism
2024-02-13 20:02:02 +08:00
parent 89e8c2c5a3
commit a302081ef6

View File

@@ -172,6 +172,10 @@ public class NavMenuItem: HeaderedSelectingItemsControl
this[!HeaderTemplateProperty] = _rootMenu[!NavMenu.HeaderTemplateProperty];
this[!SubMenuIndentProperty] = _rootMenu[!NavMenu.SubMenuIndentProperty];
this[!IsHorizontalCollapsedProperty] = _rootMenu[!NavMenu.IsHorizontalCollapsedProperty];
if (this == _rootMenu.SelectedItem || this.DataContext == _rootMenu.SelectedItem)
{
SelectItem(this);
}
}
}