Selection Bug when Replacing an Item in an ObservableCollection

Dec 22, 2008 at 8:21 PM
Edited Dec 22, 2008 at 8:22 PM


I worked today a little bit with my own CollectionView and when testing the Replace-Handler of CollectionChanged, i noticed that, if an element is selected and this one is replaced (collection[index] = new Item();) the selection doesn't renew (e.g. it's suddenly possibly to select 2 Items at once! (SingleMode is on)), only when clicking again on the previously selected Item it works as expected!

(I tested this issue also with the standard CollectionView and there it happens too ;-) just fyi)