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.

Setting `ScrollViewer`'s `VerticalScrollBarVisibility` to `Visible` does not produce implied effect

See original GitHub issue

Describe 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’s VerticalScrollBarVisibility to Auto/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

image

image

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:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
RBridcommented, Mar 8, 2022

You’re correct @marwalsch, there is no application-level setting for that behavior.

0reactions
marwalschcommented, Mar 8, 2022

@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?

Read more comments on GitHub >

github_iconTop 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 >

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