question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[NavigationView] FooterMenuItems show unwanted scrollbar

See original GitHub issue

Describe the bug NavigationView FooterMenuItems show unwanted scrollbar

Steps to reproduce the bug

  1. Add a NavigationView and add some NavigationViewItems
  2. Hover with the mouse over the right area of the FooterMenuItems area

Expected behavior No Scrollbar when there’s enough space

Screenshots image

NuGet package version: Microsoft.UI.Xaml 2.5.0

Additional context Might have been introduced here: https://github.com/microsoft/microsoft-ui-xaml/issues/3447

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Felix-Devcommented, Dec 4, 2020

@gabors We have to set the VerticalScrollBarVisibility mode on the internal scrollviewer used by the NavigationView for the footer menu items (you can see the internal scrollviewer in question linked above).

As a “hotfix” (until a WinUI version has been released with this fix) you can walk the visual tree and obtain the linked internal ScrollViewer (named “FooterItemsScrollViewer”) and set the VerticalScrollBarVisibility directly on the obtained scrollviewer instance. (Or you copy/paste the template into your project and set it in markup.)

1reaction
mfeingolcommented, Feb 13, 2021

Is someone working on fixing this so we don’t have to apply awkward workarounds that don’t quite work?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to hide vertical scrollbar in NavigationView?
It will automativally show the vertical scrollbar. I'm trying to hide it. I looked up in NavigationView 's style in generic.xaml, and found...
Read more >
ScrollBarVisibility Enum (Windows.UI.Xaml.Controls)
A ScrollBar appears only when the viewport cannot display all of the content. The dimension of the content is set to the corresponding...
Read more >
Creating Scrollable Content Using SwiftUI's ...
This guide aims to teach fundamental knowledge of the NavigationView and ScrollView to aid in building frontend components for iOS.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found