private void onCanvasAttached() { Mouse.AddPreviewMouseDownHandler(canvas, OnMouseDown); Mouse.AddPreviewMouseMoveHandler(canvas, OnMouseMove); Mouse.AddPreviewMouseUpHandler(canvas, OnMouseUp); Mouse.AddPreviewMouseWheelHandler(canvas, OnMouseWheel); }
public override void OnPlotterAttached(Plotter plotter) { base.OnPlotterAttached(plotter); Mouse.AddPreviewMouseDownHandler(Parent, OnMouseDown); Mouse.AddPreviewMouseMoveHandler(Parent, OnMouseMove); Mouse.AddPreviewMouseUpHandler(Parent, OnMouseUp); Mouse.AddPreviewMouseWheelHandler(Parent, OnMouseWheel); }