I have a vertical gallery that has a scroll bar. I want to have a shadow image that I only want to be visible if there the scroll bar is not at the bottom. So once the user has scrolled to the end of the gallery the shadow image will be set to Visible = false.
To do so, I am wondering if there is a way I can track the position of the scroll window or scroll bar Y position.
If( user has scrolled to the bottom of the gallery , ShadowImage.Visible = false).
Using Gallery.VisibleIndex is not suitable for the scenario unfortunately.
Any help appreciated!
@morgs I don't think you can track the position of scroll bar in a gallery control.
I didn't find anything related to position of scroll bar in official documentation: Gallery control in canvas apps
Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it 👍
I figured this out. I have a Vertical Container. Below it, I have an arrow pointing down to let the user know that there is more content in it. The last item in my container is called lastItem (for example). The arrow's visibility is set to lastItem.Y>=-200 (-200 being the distance one has to scroll to get to the bottom). This is also how you can check how far a user has scrolled. Unfortunately, this does not work with gallery fields.
Hi @rwittels ,
Can you please share more info or show the screenshot how you set it in the arrow and last item from the container?
Hi. Make sure that your vertical container is set to Scroll on Vertical Overflow.
Place the arrow directly below the vertical container, not inside it.
Set the Visible Property of your arrow to LastItem.Y>=-250. LastItem is the name of the last component in your vertical container and -250 is how far the item moves upwards when you scroll before it is fully visible at the bottom of your container. You will have to test and change this value a few times until you get it right.
Make sure that your vertical container is set to Scroll on Vertical Overflow.
Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.
Keep up to date with current events and community announcements in the Power Apps community.
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.
Check out the latest Community Blog from the community!