How to stop manipulation inertia in ListBox/ScrollViewer?
Posted: 03 Feb 2019, 23:03
I have a ListBox with list of fonts that the user can scroll through and a separate control for paging through the fonts.
When the user switches to another page, I replace the contents of the ListBox with another set of fonts and scroll to position 0.
There are situations when a user starts scrolling the ScrollViewer using touch on phone, then realizes they want to switch to another page and quickly presses the page switch buttons.
When the above happens, the ListBox keeps scrolling even though its contents are now different.
How do I cancel the inertia velocity for the ListBox to "stop it in its tracks"? :)
Thanks!
When the user switches to another page, I replace the contents of the ListBox with another set of fonts and scroll to position 0.
There are situations when a user starts scrolling the ScrollViewer using touch on phone, then realizes they want to switch to another page and quickly presses the page switch buttons.
When the above happens, the ListBox keeps scrolling even though its contents are now different.
How do I cancel the inertia velocity for the ListBox to "stop it in its tracks"? :)
Thanks!