I would like to drag a ListBox item and drop it onto another item. In OnDragOver and OnDrop the sender is the ListBox, but I don't see a way to identify the specific item I am dragging over or dropping on. Is there a way to do that?
2 Answers, 1 is accepted
answered on 14 May 2020, 10:55 AM
To achieve your requirement you can create a custom ListBoxDragDropBehavior and override its CanDrop and Drop methods.
If you use DragDropManage to create the drag/drop customization, you can get the dragged item via the OriginalSource property of the event arguments. For the drop target, you will need to implement some code that detects what is the element under the mouse
Can you please try those approaches and let me know if you need further assistance?
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.