You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong ObservableCollection EventArg after drag/drop #355
But instead I'm getting two events (NotifyCollectionChangedAction.Remove and NotifyCollectionChangedAction.Add). I'm not sure if this is by design but in my case it was complicating the logic to decide if there was new item added externally or just drag/dropped existing control item.
@tonecool I think that's because the default drop handler uses the RemoveAt and Insert methods of the source and destination. If you know that's always the same then you can implement your own drop handler which then uses the move method. If you find a solution then you can try to add this here and make a PR. Thx 🙏
Activity
punker76 commentedon Oct 17, 2020
@tonecool I think that's because the default drop handler uses the RemoveAt and Insert methods of the source and destination. If you know that's always the same then you can implement your own drop handler which then uses the move method. If you find a solution then you can try to add this here and make a PR. Thx 🙏
Mogikan commentedon Oct 29, 2020
Use case when it's important: you need to implement Undo/Redo. Because when you undo it deletes an item, but does not paste it back.
Observable collection Move behavior #355 (#362)