I know the difference between a List and ObservableCollection from ObservableCollection<> vs. List<> but sources like Microsoft Xamarin.Forms docs say that
Because ItemsSource has been sent to an array, the content will not update as the underlying list or array changes. If you want the ListView to automatically update as items are added, removed and changed in the underlying list, you'll need to use an ObservableCollection. ObservableCollection is defined in System.Collections.ObjectModel and is just like List, except that it can notify ListView of any changes:
So what exactly would be different if I implemented a List as the ItemSource for my ListView in Xamarin.Forms in contrast to an ObservableCollection if data binding is done. Also, my List or OC consists of multiple levels of Lists or OCs of different objects.
Ex:
List<Data> = new List<Data>();
class Data{
public List<SomeOtherData> {get; set;}
}
ItemSource
property. But it depends if binding is involved etc... Please clarify this as you have pointed out already, that you know the difference between the two. - zaggler