I need to implement horizontal paging functionality on ScrollViewer
like in iOS. To do that I need to catch the event when ScrollViewer
did ends decelerating, but ScrollViewer
doesn't have that kind of events like in IOS, eg
-scrollViewDidEndDecelerating:
-scrollViewDidEndScrollingAnimation:
,etc...
Does any one know how to catch those events, or suggest a better method how to achieve paging functionality, or may be you know a 3rd party already implemented ScrollViewer with paging?
I'm not sure what paging means in iOS, but if I am guessing correctly - you might be interested in looking at HorizontalSnapPointsAlignment
and HorizontalSnapPointsType
properties. Or even better just use the FlipView
control. The two properties will allow the ScrollViewer
to automatically snap to elements of the ItemsPanel(Root)
, so for example if the panel is an (Items)StackPanel
- it will snap to the elements of that and thus give you the page snap behavior in a control similar to the FlipView
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.