private void LeftScrollerScrollChanged(object sender, ScrollChangedEventArgs e) { var scrollViewer = sender as ScrollViewer; if (scrollViewer != null) { RightScroller.ScrollToVerticalOffset(scrollViewer.VerticalOffset); RightScroller.ScrollToHorizontalOffset(scrollViewer.HorizontalOffset); } }
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); } }