void designPanel_DragLeave(object sender, DragEventArgs e) { try { if (moveLogic != null) { moveLogic.Cancel(); moveLogic.ClickedOn.Services.Selection.SetSelectedComponents(null); moveLogic.DesignPanel.IsAdornerLayerHitTestVisible = true; moveLogic = null; changeGroup.Abort(); } } catch (Exception x) { DragDropExceptionHandler.RaiseUnhandledException(x); } }
protected override void OnStopped() { moveLogic.Cancel(); }