0
votes

I'm using a Windows Phone 8.1 project and have a ScrollViewer in my XAML.

Is there an event which will fire when the ScrollViewer start scrolling? Or anyway to trigger code when ScrollViewer start scrolling?

1
There's no need to list tags in your title. I also removed the greeting from your post, since we all see who you are in your character sheet at the bottom. Please read meta.stackexchange.com/questions/19190/… for more information about tags in titles - Patrick

1 Answers

0
votes

Try ViewChanging and ViewChanged events of ScrollViewer.

Note that these events will be called multiple times during a touch manipulation. You will need to rely on IsIntermediate (in ScrollViewerViewChangedEventArgs) or IsInertial (in ScrollViewerViewChangingEventArgs) to call your code accordingly.


Update

If you want to know when a touch happens immediately I'd give the ScrollViewer's direct child, for example, a StackPanel a transparent background and then subscribe to its PointerEntered event.