public void listBox_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { try { if (this._onDrag == true && this.dragItems != null && IsMouseDragCondition(false) == true) { object dropTo = GetDragItemData(this.cursorObj); if (dropTo != null) { ItemsAction(() => bx.bxMoveItemsDrop(bx.TargetBox, dropTo)); e.Handled = true; } } DragRelease(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }