private void DropTargetContainer_MouseLeave(object sender, MouseEventArgs e) { if (!DragManager.IsDragging) { return; } DragManager.UpdateDropTarget(null); }
private void DropTargetContainer_MouseMove(object sender, MouseEventArgs e) { if (!DragManager.IsDragging || e.OriginalSource != sender) { return; } var dropTarget = this.dropTarget.GetDropLocation(e.GetPosition(DropTargetContainer)); DragManager.UpdateDropTarget(dropTarget); }