Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
neyc00 opened this issue Mar 4, 2024 · 1 comment

Comments

@neyc00
Copy link

neyc00 commented Mar 4, 2024

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
@yunofuture
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants