punker76/gong-wpf-dragdrop

Is it possible for dropped item to replace empty placeholder item in target list, instead of being just inserted

Opened this issue · 1 comments

What steps will reproduce this issue?

Drag and drop ListBox item from one list to another.

Expected outcome

Is it possible to drag an item to a list which has some empty placeholder objects and when item is dropped on placeholder, this object is replaced by the dropped object and the source list gets the empty placeholder, so the number of items on each list remains the same.

I attached a gif, which shows two lists with same number of items. When item is dragged and dropped, it is moved from one list to another. What I would like to achieve is how to handle the drop so the placeholder item from one list is just replaced by the dropped item from other list.

Current behaviour:
gif2

Wanted behaviour:
Gif_correct

  • GongSolutions.WPF.DragDrop v3.2.1.
  • Windows 10
  • Visual Studio 2022
  • .NET Framework 5.0

I also want to know if there is a way to achieve this.