Why does NavigationView not support menu groups without head page
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with NavigationMenuItem and a top-level item containing a submenu but no page, using the versions and environment listed. Trace the NavigationView menu rendering and navigation behavior; done means the top-level name is displayed and its submenu can expand without requiring a navigation page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100