NavigationViewItem does not render MenuItems beyond the 2nd nesting level
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start at the NavigationViewItem control and its rendering or template code, then reproduce the provided three-level MenuItems example with PaneDisplayMode="Left". Confirm the level-3 item is present in the data but not displayed, and consider the documented expectation that deeper items render recursively or the nesting limitation is explicitly documented.
Written by the indexing model from the issue text.
Description
Describe the bug
When nesting NavigationViewItem.MenuItems three or more levels deep in a NavigationView with PaneDisplayMode="Left", only the first two levels are rendered and expandable. Level 3+ items are never displayed, even though they are correctly present in the data (MenuItems.Count confirms this via debugging), and even when IsExpanded = true is explicitly set on the level-2 parent item.
To Reproduce
new NavigationViewItem
{
Content = "Level 1",
MenuItems =
{
new NavigationViewItem
{
Content = "Level 2",
MenuItems =
{
new NavigationViewItem
{
Content = "Level 3", // never rendered
TargetPageType = typeof(SomePage),
}
}
}
}
}
Expected behavior
NavigationViewItem should support at least the same nesting behavior recursively at any depth, or the limitation should be explicitly documented.
Screenshots
OS version
Windows 11
.NET version
.NET 8
WPF-UI NuGet version
4.3.0
Additional context
No response
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
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.
More from lepoco/wpfui
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
:star: top bug :star: top issue bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·
-
area/docs-content Bug pulumi/docs
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
-
agentic-workflows untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100