Example #1
0
        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();
            }
        }
Example #2
0
        private static void OnVerticalScrollOffsetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AnimatedScrollViewer thisSViewer = (AnimatedScrollViewer)d;

            thisSViewer.ScrollToVerticalOffset((double)e.NewValue);
        }