I have a ObservableCollection property and also this property
public ListCollectionView ListView
{
get
{
return (ListCollectionView)(CollectionViewSource.GetDefaultView(List));
}
}
With List being the ObservableCollection
In WPF I have a ListView Control bound to the ListView property.
So as I understand it if I change the ObservableCollection in code it should be reflected in the View.
But what if I just do List = new ObservableCollection<SomeType>(someElements)
The list in the View doesn’t update at all. Is there anyway to get it to refresh in code behind if I’m doing it MVVM ?
Add another change notification for the view: