为UWP中的ScrollViewer订阅ViewChange事件时,我正在尝试查找滚动方向。
因此,我执行的每个滚动(上下滚动)都会调用此事件。我只需要在滚动到底部时执行操作,而在向上滚动时则忽略。这可能吗?
private async void OnViewChanged(object sender, ScrollViewerViewChangedEventArgs e)
{
if (!e.IsIntermediate)
{
//here I need to know the scroll direction
}
}