Ejemplo n.º 1
0
 private void onCanvasAttached()
 {
     Mouse.AddPreviewMouseDownHandler(canvas, OnMouseDown);
     Mouse.AddPreviewMouseMoveHandler(canvas, OnMouseMove);
     Mouse.AddPreviewMouseUpHandler(canvas, OnMouseUp);
     Mouse.AddPreviewMouseWheelHandler(canvas, OnMouseWheel);
 }
Ejemplo n.º 2
0
        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);
        }