how to notify a ObservableCollection<Book>
when a Nested Element changes and i need to know it ?
Perhaps a "ObservableCollection<Book>
" and "Book
" has a Member "Chapter
". And "Chapter" has a String Property called "Name
" and i change the name value.
How to throw CollectionChanged of ObservableCollection when Property "Name" in Name->Chapter -> Book -> ObservableCollection<Book>
changed ??
Is the common way in MVVM to tunnel it through manuell so that CollectionChanged is fired when PropertyChange is fired ??
Thanks :)
UPDATE: I found a solution in this post: ObservableCollection not noticing when Item in it changes (even with INotifyPropertyChanged)
-> Use Binding List or kind of a TrulyObservableCollection from the post bescause ObservableCollection doesn't relay on item notifications like i already mentioned! difference between ObservableCollection and BindingList
-> If u use BindingList remember the disadvantage of this post http://www.themissingdocs.net/wordpress/?p=465