private void EndDrag(MouseEventArgs e) { this.dragging = false; if (this.draggedItem != null) { if (targetListBox != null) { if (targetListBox == sourceListBox && sourceListBox.Items.Count == 1) { return; } Point p2 = new Point(); p2 = sourceListBox.PointToScreen(new Point(e.X, e.Y)); p2 = targetListBox.PointToClient(p2); RadElement elementAtPoint = targetComponentElementTree.GetElementAtPoint(p2); if (elementAtPoint != null) { if ((elementAtPoint.Visibility != ElementVisibility.Visible)) { return; } //RadListVisualItem visualItem = elementAtPoint as RadListVisualItem; //if (visualItem != null) { //replacedItem = visualItem.Data; if (draggedItem == replacedItem) { return; } RefreshItemsAfterDragDrop(e); } } if (this.outlineForm != null) { this.outlineForm.Dispose(); this.outlineForm = null; } if (this.feedBackForm != null) { this.feedBackForm.Dispose(); this.feedBackForm = null; } this.isRealDrag = false; } } }