Reputation: 2315
Can one bind to a List, such that when any of the list elements get changed, the target gets notified? I I want to a dependency property to the list with a multivalue converter in which I do something with the list each time any of the elements change or new elements get added.
Upvotes: 0
Views: 70
Reputation: 70122
There is an interface that lists can implement, INotifyCollectionChanged, which is used to notify that the elements it contains have changed. The framework class ObservableCollection implements this interface.
If you need to handle changes from any element in the collection, you will find an implementation here:
ObservableCollection that also monitors changes on the elements in collection
Upvotes: 1