wieslawsoltes / Avalonia.Xaml.Behaviors

Port of Windows UWP Xaml Behaviors for Avalonia Xaml.
MIT License
28 stars 4 forks source link

ListBox dragging not working properly #1

Open Edgarianom1212 opened 1 month ago

Edgarianom1212 commented 1 month ago

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 commented 3 weeks ago

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.

https://github.com/wieslawsoltes/Avalonia.Xaml.Behaviors/blob/72e7a9cd48285abf396c7847a8f7403078e3e7f6/src/Avalonia.Xaml.Interactions.Draggable/ItemDragBehavior.cs#L247-L248