在ScrollViewer UWP使用ViewChange事件时如何确定滚动方向(底部或顶部)

时间:2019-06-10 13:01:52

标签: c# .net uwp

为UWP中的ScrollViewer订阅ViewChange事件时,我正在尝试查找滚动方向。

因此,我执行的每个滚动(上下滚动)都会调用此事件。我只需要在滚动到底部时执行操作,而在向上滚动时则忽略。这可能吗?

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

0 个答案:

没有答案