private void ImageGridView_Loaded(object sender, RoutedEventArgs e) { var scrollViewer = ImageGridView.GetScrollViewer(); scrollViewer.ViewChanging -= ScrollViewer_ViewChanging; scrollViewer.ViewChanging += ScrollViewer_ViewChanging; }
public void ScrollToTop() { ImageGridView.GetScrollViewer().ChangeView(null, 0, null); }
public void SmoothScrollToPosition(double y) { ImageGridView.GetScrollViewer().ChangeView(null, y, null, false); }