Esempio n. 1
0
 // Keeping the scroll viewers in sync is up to the view, not a viewmodel concern
 private void TimelineScrollChanged(object sender, ScrollChangedEventArgs e)
 {
     if (sender == TimelineHeaderScrollViewer)
     {
         TimelineRailsScrollViewer.ScrollToHorizontalOffset(e.HorizontalOffset);
     }
     else if (sender == TimelineRailsScrollViewer)
     {
         TimelineHeaderScrollViewer.ScrollToHorizontalOffset(e.HorizontalOffset);
     }
 }
 // Keeping the scroll viewers in sync is up to the view, not a viewmodel concern
 private void TimelineScrollChanged(object sender, ScrollChangedEventArgs e)
 {
     if (e.OriginalSource == TimelineHeaderScrollViewer)
     {
         TimelineRailsScrollViewer.ScrollToHorizontalOffset(e.HorizontalOffset);
     }
     else if (e.OriginalSource == PropertyTreeScrollViewer)
     {
         TimelineRailsScrollViewer.ScrollToVerticalOffset(e.VerticalOffset);
     }
     else if (e.OriginalSource == TimelineRailsScrollViewer)
     {
         TimelineHeaderScrollViewer.ScrollToHorizontalOffset(e.HorizontalOffset);
         PropertyTreeScrollViewer.ScrollToVerticalOffset(e.VerticalOffset);
     }
 }