public PlotControl() { Background = Brushes.Transparent; panAction = new PanAction(this); zoomAction = new ZoomAction(this); sliderAction = new SliderAction(this); MouseActions = new List <MouseAction> { panAction, zoomAction, sliderAction }; series = new ObservableCollection <DataSeries>(); axes = new ObservableCollection <Axis>(); series.CollectionChanged += OnSeriesChanged; axes.CollectionChanged += OnAxesChanged; Loaded += OnLoaded; DataContextChanged += OnDataContextChanged; SizeChanged += OnSizeChanged; CompositionTarget.Rendering += CompositionTargetRendering; // CommandBindings.Add(new KeyBinding()) }
public PlotControl() { Background = Brushes.Transparent; panAction = new PanAction(this); zoomAction = new ZoomAction(this); sliderAction = new SliderAction(this); MouseActions = new List<MouseAction> { panAction, zoomAction, sliderAction }; series = new ObservableCollection<DataSeries>(); axes = new ObservableCollection<Axis>(); series.CollectionChanged += OnSeriesChanged; axes.CollectionChanged += OnAxesChanged; Loaded += OnLoaded; DataContextChanged += OnDataContextChanged; SizeChanged += OnSizeChanged; CompositionTarget.Rendering += CompositionTargetRendering; // CommandBindings.Add(new KeyBinding()) }