BewildrTestApp.Window1.mouse_move C# (CSharp) Method

mouse_move() private method

private mouse_move ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void
        private void mouse_move(object sender, MouseEventArgs e)
        {
            if (dragPoint != null)
            {
                var canvPoint = e.GetPosition(drag_canvas);
                var point = new Point(canvPoint.X - dragPoint.Value.X,
                                      canvPoint.Y - dragPoint.Value.Y);
                Canvas.SetLeft(drag_lbl, point.X);
                Canvas.SetTop(drag_lbl, point.Y);
            }
        }