Why does NavigationView not support menu groups without head page
iray1024 opened this issue · comments
MM丶 commented
Describe the bug
When adding a Menu that includes sub level menus, a page must also be provided for the Top level menu. Otherwise, the top level menu's name will not be displayed.
To Reproduce
var topLevelMenu = new NavigationMenuItem() { Name = "Top" };
topLevelMenu .MenuItems.Add(new ...);
Expected behavior
Can add a top-level menu item that is only used to expand submenus, not for navigation.
Screenshots
No response
OS version
Win11
.NET version
.NET 8.0
WPF-UI NuGet version
3.0.4
Additional context
No response
MM丶 commented
Is it setting Content? I feel like this is a strange logic