示例#1
0
        private void LeftScrollerScrollChanged(object sender, ScrollChangedEventArgs e)
        {
            var scrollViewer = sender as ScrollViewer;

            if (scrollViewer != null)
            {
                RightScroller.ScrollToVerticalOffset(scrollViewer.VerticalOffset);
                RightScroller.ScrollToHorizontalOffset(scrollViewer.HorizontalOffset);
            }
        }
示例#2
0
 private void ScrollChanged(object sender, ScrollChangedEventArgs e)
 {
     if (sender == LeftScroller)
     {
         RightScroller.ScrollToVerticalOffset(e.VerticalOffset);
         RightScroller.ScrollToHorizontalOffset(e.HorizontalOffset);
     }
     else
     {
         LeftScroller.ScrollToVerticalOffset(e.VerticalOffset);
         LeftScroller.ScrollToHorizontalOffset(e.HorizontalOffset);
     }
 }