Skip to content

Top NavigationView overflow items disappear #5723

Open

Description

@MartinZikmund

Current behavior

When NavigationView is in Top display mode and causes overflow (too many items), selecting items from the overflow makes them magically disappear 🪄

wasmnavview

Expected behavior

image

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

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    difficulty/medium 🤔
    area/items-repeater
    project/items 🧾
    and removed
    difficulty/tbd
    triage/untriaged
    on Apr 11, 2021
  2. added this to the 3.7 milestone on Apr 11, 2021
  3. jeromelaban commented on Apr 12, 2021

    @jeromelaban
    Member

    How is the list managed here ? Is it an ItemsRepeater ?

  4. MartinZikmund commented on Apr 12, 2021

    @MartinZikmund
    MemberAuthor

    Yes, both the menu and the submenu are ItemsRepeaters

  5. jeromelaban commented on Apr 12, 2021

    @jeromelaban
    Member

    Could be related to a recent ScrollViewer regression, @dr1rrb ?

  6. dr1rrb commented on Apr 20, 2021

    @dr1rrb
    Member

    Lot of possibilities here ... might also be a Flyout issue ...

  7. modified the milestones: 3.7, 3.8 on Apr 20, 2021
  8. 5 remaining items

  9. added this to the 3.10 milestone on Aug 11, 2021
  10. modified the milestones: 3.10, 3.11 on Sep 10, 2021
  11. Dimigergo commented on Oct 27, 2021

    @Dimigergo

    Any solution or workaround for this?

  12. changed the title [-][WASM] Top NavigationView overflow items disappear[/-] [+][WASM] Top `NavigationView` overflow items disappear[/+] on Jun 2, 2023
  13. changed the title [-][WASM] Top `NavigationView` overflow items disappear[/-] [+]Top `NavigationView` overflow items disappear[/+] on Jul 17, 2025
  14. MartinZikmund commented on Jul 17, 2025

    @MartinZikmund
    MemberAuthor

    Still broken on Skia targets

  15. MartinZikmund commented on Apr 8, 2026

    @MartinZikmund
    MemberAuthor

    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_ItemShouldNotDisappear

    Test fails with System.ArgumentOutOfRangeException at NavigationView.GetIndexPathForContainer (NavigationView.cs:1318) when programmatically setting SelectedItem to an item in a Top-mode NavigationView with 7 items in a 300px-wide container. The crash occurs in ChangeSelection → GetIndexPathForContainer, confirming the issue is not just visual but causes an actual crash when overflow items are selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/items-repeaterdifficulty/medium 🤔has-repro-branchkind/bugproject/items 🧾

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions