Setting `ScrollViewer`'s `VerticalScrollBarVisibility` to `Visible` does not produce implied effect
See original GitHub issueDescribe the bug
When a ScrollViewer’s VerticalScrollBarVisibility is set to Visible, it apparently behaves in the exact same manner as in Auto state:
- The Scrollbar is visible when the content is actually scrollable;
- the scrollbar disappears in the opposite case.
However, in compliance with the enum’s corresponding value the scrollbar should always be present, even in the latter case (and reach its full width).
Even though I have the suspicion this is by design the API implicates otherwise.
Steps to reproduce the bug
- Set a
ScrollViewer’sVerticalScrollBarVisibilitytoAuto/Visible; - Observe how the bar disappears when content is not actually scrollable (just like in auto mode).
Expected behavior
Setting VerticalScrollBarVisibility to Visible should always display the bar.
Screenshots


NuGet package version
No response
Windows app type
- UWP
- Win32
Device form factor
Desktop
Windows version
Insider Build (xxxxx)
Additional context
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
WPF ScrollViewer is not working
I want to add scroll view to my program and I tried ScrollView control but that don't take effect. It's my first time...
Read more >ScrollViewer Class (Microsoft.UI.Xaml.Controls)
A ScrollViewer enables content to be displayed in a smaller area than its actual size. When the content of the ScrollViewer is not...
Read more >ScrollViewer.VerticalScrollBarVisibility Property
A ScrollBarVisibility value that indicates whether a vertical ScrollBar should be displayed. The default is Visible. Attributes. BindableAttribute. Remarks ...
Read more >Vertical Scrollbar/ScrollViewer and RadTimeline
This poses an issue because I don't want to have to set a height for the timeline because I don't know how many...
Read more >How to make the WPF ListBoxEdit's vertical scrollbar ...
In WPF ListBoxEdit, you need to set the ScrollViewer.VerticalScrollBarVisibility attached property to Visible to enable showing the vertical ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You’re correct @marwalsch, there is no application-level setting for that behavior.
@RBrid Thanks, I wasn’t aware of the windows-wide scrollbar setting, now it makes more sense. I assume there is no way to activate this setting on application scope regardless of the Windows setting, the same way we can force a specific theme on application root?