I have a ObservableCollection
, I can add and remove item from the collection. But I can't replace an existing item in the collection. There is a way to replace an item and reflect that on my bound components.
System.Collections.Specialized.NotifyCollectionChangedAction.Replace
Can anyone please show me how to accomplish this?
collection[someIndex] = newItem;