WPF MVVM: Notifying the View of a change to an element within an ObservableCollection?
Calling OnPropertyChanged for an ObservableCollection only works when there has been some change to the properties of the collection开发者_开发知识库, not the objects it contains (add, remove, clear, etc).
Is there any way to notify the View that there has been a change to an item within the collection?
The objects it contains have to implement INotifyPropertyChanged as well. In your setter you trigger the event, and WPF will pick up on this and read in the new value as long as you are using two-way bindings or read-only bindings.
精彩评论