Describe the bug
ObservableCollectionAdaptor does remove+add instead of replace on the IObservableCollection<?>
Steps To Reproduce
- Call source.Bind(obsCollection), where source is IObservable<ChangeSet<?>>
- Listen to obsCollection.CollectionChanged
- Send a update on
source
- Notice that CollectionChanged raises 2 events for each update on
source. One remove and one add
Expected behavior
CollectionChanged should raise just one update event
In a UI context, when binding to a grid, this issue causes the selection to be lost when there are any updates on the selected record.
Describe the bug
ObservableCollectionAdaptor does remove+add instead of replace on the IObservableCollection<?>
Steps To Reproduce
sourcesource. One remove and one addExpected behavior
CollectionChanged should raise just one update event
In a UI context, when binding to a grid, this issue causes the selection to be lost when there are any updates on the selected record.