How to determine the scroll direction(bottom or top) when using ViewChange event for ScrollViewer UWP

Viewed 81

I'm trying to find the scroll direction when subscribing to ViewChange event for a ScrollViewer in UWP.

So this event is being called on every scroll that I perform(up and down). I need to perform actions only when scrolling to bottom and ignore when scrolling up. Is this possible ?

private async void OnViewChanged(object sender, ScrollViewerViewChangedEventArgs e)
    {
        if (!e.IsIntermediate)
        {
          //here I need to know the scroll direction
        }
    }
0 Answers
Related