Skip to content

NavigationViewItemSeparator in a top NavigationView draws a horizontal line through the next item #26668

Todo

Description

@Kunal22shah

Current behavior 🐛

With PaneDisplayMode="Top", a NavigationViewItemSeparator renders as a horizontal line. The line runs into the following item, so a disabled item after it looks struck through. The default style shows it, so it is not caused by a custom style. Removing the separator fixes the next item.

Expected behavior 🎯

As on WinUI: in top mode the separator is a short vertical line between items.

How to reproduce it (as minimally and precisely as possible) 🔬

<muxc:NavigationView PaneDisplayMode="Top" IsBackButtonVisible="Collapsed">
    <muxc:NavigationView.MenuItems>
        <muxc:NavigationViewItem Icon="Download" Content="Downloads" />
        <muxc:NavigationViewItemSeparator />
        <muxc:NavigationViewItem Icon="Mail" Content="Mail (disabled)" IsEnabled="False" />
    </muxc:NavigationView.MenuItems>
</muxc:NavigationView>

Result: a horizontal line starts after "Downloads" and crosses the "Mail (disabled)" icon and label.

Possibly related (from reading the code, not confirmed): NavigationViewItemSeparator.cs uses the vertical line only when Position is TopPrimary or TopFooter, otherwise it falls back to the horizontal line. The separator may be measured before its position is set.

Workaround 🛠️

Don't use a separator in a top NavigationView.

Works on UWP/WinUI 🤷

Yes

Environment 📦

Uno.Sdk.Private 7.1.0-dev.477, Skia desktop on Windows 11. Found through the Uno.Themes Fluent sample (unoplatform/Uno.Themes#1695).

Affected platforms 📱💻🖥️

Skia (Windows); others not checked.

Activity

  1. added
    kind/bug
    triage/untriaged
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugtriage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions