public void Register(MergedTestViewType scrollViewerType, T control) { switch (scrollViewerType) { case MergedTestViewType.Diff: Unregister(diff); diff = control; break; case MergedTestViewType.Before: Unregister(before); before = control; break; case MergedTestViewType.Current: Unregister(current); current = control; break; } RegisterCore(control); }
public void StartTrackingScrollViewer(DraggableScrollViewer scrollViewer, MergedTestViewType scrollViewerType) { scrollViewerScrollSynchronizer.Register(scrollViewerType, scrollViewer); imageScaleSynchronizer.Register(scrollViewerType, scrollViewer); focusedPixelSynchronizer.Register(scrollViewerType, scrollViewer); }
public static void SetScrollViewerType(DependencyObject obj, MergedTestViewType value) { obj.SetValue(ScrollViewerTypeProperty, value); }