public void DragOver(IDropInfo dropInfo) { var draggedItem = dropInfo.Data as DraggableItemViewModel; if (draggedItem == null || !_itemAttributes.CanEquip(draggedItem.Item, _slot) || draggedItem == this) // can't drop onto itself { return; } dropInfo.Effects = draggedItem.DropOnInventoryEffect; }