Best way to implement rubberband (bounce) scrollviewer effect?
Trying to implement a scroll effect like this (WP): https://www.youtube.com/watch?v=ymtCIwi42Zk
Once you scroll to the top, and keep dragging, the ScrollViewer scales to be "squished" and snaps back once you release your finger.
iOS has similar behavior, except for no squishing.
What is the best way to implement this?
1. Subscribe to "scrollchanged" handler, then check touch position and "squish" with ScaleTransform until finger lifted?
OR
2. Inherit from ScrollViewer and do something else?
OR
3. Wait for native support in Noesis? (if planned)
Thanks!
Edit: found this source that has a nice algorithm for spring scroll (for XNA) https://github.com/DigitalRune/DigitalR ... r.cs#L1029
Once you scroll to the top, and keep dragging, the ScrollViewer scales to be "squished" and snaps back once you release your finger.
iOS has similar behavior, except for no squishing.
What is the best way to implement this?
1. Subscribe to "scrollchanged" handler, then check touch position and "squish" with ScaleTransform until finger lifted?
OR
2. Inherit from ScrollViewer and do something else?
OR
3. Wait for native support in Noesis? (if planned)
Thanks!
Edit: found this source that has a nice algorithm for spring scroll (for XNA) https://github.com/DigitalRune/DigitalR ... r.cs#L1029
Re: Best way to implement rubberband (bounce) scrollviewer effect?
1) seems to be the best option to me.
Regarding 3) we have plans to implement ReportBoundaryFeedback. With that event everything would be easier for you I assume.
Regarding 3) we have plans to implement ReportBoundaryFeedback. With that event everything would be easier for you I assume.
Re: Best way to implement rubberband (bounce) scrollviewer effect?
Good to know, thanks! I'll try #1for now (with global event handler and VisualTreeHelper.HitTest(..) similar to how I did the TiltEffect) and eventually move to #3.
Re: Best way to implement rubberband (bounce) scrollviewer effect?
Has anyone managed to implement an iOS-like bounce effect for the ScrollViewer in Noesis? Are there still plans to implement the ReportBoundaryFeedback event or even make this rubberban/bounce effect a native feature of Noesis?
Re: Best way to implement rubberband (bounce) scrollviewer effect?
Please, create a ticket about this. We want to have this officially supported.
Who is online
Users browsing this forum: Bing [Bot] and 6 guests