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

ListBox dragging not working properly #1

Open
Edgarianom1212 opened this issue Oct 2, 2024 · 1 comment
Open

ListBox dragging not working properly #1

Edgarianom1212 opened this issue Oct 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Edgarianom1212
Copy link

Edgarianom1212 commented Oct 2, 2024

When dragging a ListBoxItem with the Class "draggable", the dragging works fine for the first time. After the first drag-and-drop operation, the ListBoxItem cannot be dragged again.

@wieslawsoltes wieslawsoltes added the bug Something isn't working label Oct 24, 2024
@wieslawsoltes
Copy link
Owner

The problem is behavior is detached when removing item and inserting back does not attach it back. Not sure it can be fixed by using behaviors set from styles.

itemCollection.RemoveAt(draggedIndex);
itemCollection.Insert(targetIndex, draggedItem);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants