private void DragSourceContainer_MouseLeave(object sender, MouseEventArgs e) { var coordinates = Coordinates(e); if (DragManager.DragCandidate != null && DragManager.DragCandidateSponsor == DragSource && !DragManager.IsDragging) { SelectionManager.ClearSelection(); DragSource.StartDrag(DragManager.DragCandidate); DragManager.MouseMove(e.GetPosition(Designer.Instance.Canvas)); } }
private void Designer_MouseMove(object sender, MouseEventArgs e) { DragManager.MouseMove(e.GetPosition(this)); }