-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Need to set the Scrollbar always visible #1596
Comments
We don't support this at the moment. I guess we could enable it, at least per platform, with PlatformSpecifics. In the meantime, you might be able to turn it on with an Effect |
We now have
@jfversluis when you were implementing this, did you look into making the scrollbars visible 100% of the time? Judging just by StackOverflow conversations about this it seems to be doable, and not totally uncommon, but also a possibly frowned upon design choice. All things to consider in this discussion. |
As you mention @davidortinau, As to your question, if I looked into this; I didn't look into this specific scenario. And as you already mention yourself, a quick Google desk research learns that there are ways, but they seem hacky. Especially for iOS. Apple actively discourages this in their Human Interface Guidelines. As a part of that, I'm pretty sure they also don't have an easy API to change the default behavior. It's either never shows it, or the default behavior, which hides it after about a second after stop scrolling. The API on iOS is simply a bool: show the scroll indicator true or false. So I agree to what has been said, it is possible, but seeing all the obstacles from different angles, I'm not sure if it's worth the trouble |
Can you update the timeline? |
@samhouts , Can you please update on this? |
Can you please update timeline for this issue? |
I agree with @jfversluis that the implementation on iOS is rather hacky. The is a SO post which describes a way to let the scroll indicator flash when the view is displayed, and you could implement this as an Effect: https://stackoverflow.com/questions/13697215/make-scrollbar-always-visible-on-uiscrollview As @StephaneDelcroix suggested, making this a platform-specific would be most sensible IMHO. The effort is manageable and it would help to solve a not-so-special problem without writing your own Effects. Regarding the "bad design" argument, what else should we do to show the user that he/she can scroll the items? You could ensure that the last item is always cut-off, but in a vertical list with text items (variable row height, line-breaks), this also requires some serious effort (correct me if I'm wrong). |
Safe to say that we're not going to implement this in Xamarin.Forms anymore. If you're still interested in this please open a feature request on the .NET MAUI repository. Maybe even better; open a discussion first so we can involve different people and opinions on this first. Thanks! |
Description
We have try to set the horizontal and vertical scrollbar is always visible in view. But currently, the scrollbar is visible only when we scroll the view. But we need to set the scrollbar visibility as true.
We have attached the sample for your reference. Can you please check this and let, us known In case of any concern.
Steps to Reproduce
Expected Behavior
Need to set the horizontal and vertical scrollbar as always visible.
Actual Behavior
Currently, scrollbar visible only while scrolling the view .
Screenshots
Reproduction Link
Regards,
Sivaraman
WorkingWithListview (2).zip
The text was updated successfully, but these errors were encountered: