I am new to silverlight so bear with me.. i have a view model in which i have 3 ObservableCollections of 3 classes (inherited from INotificyPropertyChanged). One of this classes is “Favorites” . In a child pivot page(of the main panorama view), i modify the favorites (i add one to the database etc.).
How can i “update” the view of the main panorama view? is it sufficient to add the new favorite object to the ObservableCollection or do i need to implement some new actions? From what i understood, the views are active, so if i modify an element (even one linked though Binding) it should update. Is this true?
You don’t need to do anything if you add or remove an item to an
ObservableCollection, the UI will show this new item automatically. However, if you modify your underlying data object, the UI won’t be updated unless your object have implementedINotifyPropertyChanged.You can take a look at this post or this one.