protected override void MouseMove(object sender, System.Windows.Input.MouseEventArgs e) { if (dragging != null) { dragging.MoveTo(e.GetPosition(Parent)); Drawing.Figures.Recalculate(); } }
public static FreePoint CreateFreePoint(Drawing drawing, Point coordinates) { var result = new FreePoint() { Drawing = drawing }; result.MoveTo(coordinates); return(result); }