简体   繁体   中英

How to implement scrollviewer bouncing's animation in c# and wpf?

I want to implement scrollviewer bouncing's animation in c# and wpf, like IOS's UIScrollview.

When users scroll to top or end, it starts to decrease speed and bouncing.

I think that google can search related issues, but i can not find.

Does anyone have similar experiences?

Well for touch manipulation, WPF already has some built in support for this. Take a look at the ReportBoundaryFeedback method and ManipulationBoundaryFeedback event. I believe the ScrollViewer automatically uses this when touch panning (see PanningMode ).

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM