private bool IsOwnerActivityBeingDragged(DragEventArgs e) { if (this.wfItemPresenter.Item == null) { return(false); } else { // In case of a toolbox drop, DragDropHelper.GetObjectsToBeDropped // will create an instance, which will possibliy pop up a type picker // dialog for generic activities. So check for it first and avoid // pop up dialogs. if (DragDropHelper.IsDraggingFromToolbox(e)) { return(false); } IEnumerable <ModelItem> draggedObjects = DragDropHelper.GetDraggedModelItems(e); return(draggedObjects.Contains(this.wfItemPresenter.Item)); } }