Represents a dynamic collection of data that provides notifications when items get added, removed or when the whole list is refreshed
This tip is dedicated to experienced WP developer who had to suffer a lot earlier for
ObservableCollection can be updated from UI exactly like any collection. The true difference is rather straightforward:
INotifyCollectionChanged which provides notification when the collection is changed. It allows the binding engine to update the UI when the
ObservableCollection is updated.
Windows Phone developers who are relatively new, it is suggested to use
ObservableCollection instead of
List. It has the capabilities of a List in addition to extended capabilities.
Those who developed in WP 8.0 or before, will be glad to know that
ObservableCollection will remove a huge pain when you’re going to implement any
DataBinding. Earlier we had to use
INotifyPropertyChanged interface to make the binding interactive and efficient. And truly that was a pain in the. This modern List like ObservableCollection takes care of all the things. According to Visual Studio Documentation.
Here an example of How to Create and Bind to an ObservableCollection.
This article gives a basic understanding of