I need to refresh an MvxListView if I add an item to the ItemsSource and also if some of the data changes in the item. The ItemsSource is sorted in reverse so when I add an item I'm using
private void OnItemAdded(object sender, ObjectEventArgs e)
{
ItemDataList.Insert(0, new ItemData((Item)e.Object));
}
When I use an ObservableCollection and the list is positioned at the top and I insert an item at the top the list refreshes, the new item visible at the top and all other items moved down.
If I use a BindingList then the list is not refreshed until I scroll it. RaiseListChangedEvents is set to true so I'm expecting that it will refresh.
I can't use ObservableCollection because I also need to refresh items when their data changes - this is working with BindingList and ItemData derived from MvxNotifyPropertyChanged.
Am I correct in doing this. Should MvxListView work with BindingList?
Thanks, Jonathan