private static void OnTargetVerticalOffsetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { AnimatedScrollViewer thisScroller = (AnimatedScrollViewer)d; if (thisScroller._aniVerticalScrollBar != null) { if ((double)e.NewValue != thisScroller._aniVerticalScrollBar.Value) { thisScroller._aniVerticalScrollBar.Value = (double)e.NewValue; } } if (!thisScroller._isVOverride) { thisScroller.AnimateNow(); } }
private static void OnVerticalScrollOffsetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { AnimatedScrollViewer thisSViewer = (AnimatedScrollViewer)d; thisSViewer.ScrollToVerticalOffset((double)e.NewValue); }