Introduction
Vertical scrolling is something we take for granted in mobile app including Power Apps. You add a scrollable canvas on a screen and you have a scrollable screen in your app. However, what if you want something to scroll automatically? I needed this when I was making the teleprompter app. To download the app, click here.
Vertical scrolling
All you need is a timer control to set the Y position of a label to the following property:
Parent.Height - Timer1.Value / Timer1.Duration * Parent.Height*2
When the timer has not started, the Y position is Parent.Height, which is below the bottom end of the screen. As the timer runs, Timer.Value/Timer.Duration changes from 0 to 1, changing the Y position to -Parent.Height, which is above the top of the screen. To speed up the scroll, reduce the duration. On the other hand, to speed up the scroll, increase the duration.
Here is a demo:
To learn more about the timer control, click here.
Stay tuned for the remaining 6 tips!