I am once again struggling with ScrollView thus I am now asking if it is possible to achieve a scrollable GridView using the ScrollView and how to achieve it? See screenshots below. Thanks for the help in advance.
Currently, scrollView gives me the following result
Do I have to do that in code or is there a simple way of doing this in the UIBuilder, because on my end it doesn’t let me drag in anything as a child of the ScrollView?
Just tried your suggestion and it doesn’t seem to work like that. Now the items are laid out that way, but the scrollbar isn’t showing up, using these settings for the ScrollView.
The thing is there isn’t enough space. I display around 1000 items in this list. Using the debugger shows the size of this element being 14000 pixels.
If I set the height of the scrollView to some pixel size that is inside my monitor’s resolution, it shows the scrollbar and everything works fine, but this seems a little hacky to me to use a script to set the height, shouldn’t auto do some flexbox magic?
Yes it should.
I may be missing something with your hierarchy, but it could also be a problem with the code that detect if the scrollbar is needed. Does the scrollbar work if you set to be visible (instead of auto) in the settings? :
It seems like my local prototypes have a difference with yours. Could you share all UXML, C# and USS involved on the forum or report a bug in the editor with clear steps to reproduce?