lepoco / lepoco/wpfui

Why does NavigationView not support menu groups without head page

Open
#1,073 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.