Repository navigation
Open
Labels
area/items-repeaterCategorizes an issue or PR as relevant the ItemsRepeater controldifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIhas-repro-branchkind/bugSomething isn't workingproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
Milestone
Description
Current behavior
When NavigationView is in Top display mode and causes overflow (too many items), selecting items from the overflow makes them magically disappear 🪄
Expected behavior
How to reproduce it (as minimally and precisely as possible)
Create blank Uno app with following XAML:
<winui:NavigationView x:Name="AppNavigation" IsBackButtonVisible="Collapsed" PaneDisplayMode="Top" IsSettingsVisible="True">
<winui:NavigationView.MenuItems>
<winui:NavigationViewItem Content="First item" />
<winui:NavigationViewItem Content="Second item" />
<winui:NavigationViewItem Content="Third item" />
<winui:NavigationViewItem Content="Fourth item" />
<winui:NavigationViewItem Content="Fifth item" />
<winui:NavigationViewItem Content="Sixth item" />
<winui:NavigationViewItem Content="Seventh item" />
</winui:NavigationView.MenuItems>
<winui:NavigationView.FooterMenuItems>
<winui:NavigationViewItem Content="Admin" />
</winui:NavigationView.FooterMenuItems>
<winui:NavigationView.Content>
<Frame x:Name="InnerFrame" />
</winui:NavigationView.Content>
</winui:NavigationView>Run the app in the browser and make it as narrow as possible. Top the items and notice they disappear.
Workaround
Environment
Nuget Package:
- Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
- Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
- Uno.SourceGenerationTasks
- Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
- Other:
Nuget Package Version(s):
Affected platform(s):
- iOS
- Android
- WebAssembly
- WebAssembly renderers for Xamarin.Forms
- macOS
- Skia
- WPF
- GTK (Linux)
- Tizen
- Windows
- Build tasks
- Solution Templates
Metadata
Metadata
Assignees
Labels
area/items-repeaterCategorizes an issue or PR as relevant the ItemsRepeater controldifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIhas-repro-branchkind/bugSomething isn't workingproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)


Activity
jeromelaban commentedon Apr 12, 2021
How is the list managed here ? Is it an
ItemsRepeater?MartinZikmund commentedon Apr 12, 2021
Yes, both the menu and the submenu are
ItemsRepeatersjeromelaban commentedon Apr 12, 2021
Could be related to a recent ScrollViewer regression, @dr1rrb ?
dr1rrb commentedon Apr 20, 2021
Lot of possibilities here ... might also be a
Flyoutissue ...5 remaining items
Dimigergo commentedon Oct 27, 2021
Any solution or workaround for this?
[-][WASM] Top NavigationView overflow items disappear[/-][+][WASM] Top `NavigationView` overflow items disappear[/+][-][WASM] Top `NavigationView` overflow items disappear[/-][+]Top `NavigationView` overflow items disappear[/+]MartinZikmund commentedon Jul 17, 2025
Still broken on Skia targets
NavigationView#21054test: Reproduce NavigationView Top mode overflow item selection crash
MartinZikmund commentedon Apr 8, 2026
Repro generator
Runtime test(s) added in branch
dev/mazi/repro/5723:src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_NavigationView.cs→When_TopMode_Overflow_ItemSelected_Then_ItemShouldNotDisappearTest fails with
System.ArgumentOutOfRangeExceptionatNavigationView.GetIndexPathForContainer(NavigationView.cs:1318) when programmatically settingSelectedItemto an item in a Top-mode NavigationView with 7 items in a 300px-wide container. The crash occurs inChangeSelection→GetIndexPathForContainer, confirming the issue is not just visual but causes an actual crash when overflow items are selected.