Beispiel #1
0
        private void RightScrollerScrollChanged(object sender, ScrollChangedEventArgs e)
        {
            var scrollViewer = sender as ScrollViewer;

            if (scrollViewer != null)
            {
                LeftScroller.ScrollToVerticalOffset(scrollViewer.VerticalOffset);
                LeftScroller.ScrollToHorizontalOffset(scrollViewer.HorizontalOffset);
            }
        }
Beispiel #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);
     }
 }
Beispiel #3
0
 private void ScrollViewer_ScrollChanged(object sender, ScrollChangedEventArgs e)
 {
     LeftScroller.ScrollToVerticalOffset(RightScroller.VerticalOffset);
 }
Beispiel #4
0
 private void SyncHeaderScrollers()
 {
     TopScroller.ScrollToHorizontalOffset(BoardScroller.HorizontalOffset);
     LeftScroller.ScrollToVerticalOffset(BoardScroller.VerticalOffset);
 }
Beispiel #5
0
 private void ScrollFirstChangeIntoView(double firstModifiedLineVerticalOffset)
 {
     //LeftScroller.UpdateLayout();
     LeftScroller.ScrollToVerticalOffset(firstModifiedLineVerticalOffset - (LeftScroller.ViewportHeight / 2));
 }