Open magic1144 opened 3 years ago
instead of adding items assign new new observablecollection like below
//Wrong:
foreach(var item in list)
{
Model.List.Add(item);
}
//right:
Model.List = new ObservableCollection(list);
I just had the same problem.
Switchting to create a new ObservableCollection is a possible workaround, but you might need to manually raise the property change everytime.
This means you can switch to List
I use the MVVM pattern.
I click the Go button In ViewModel, the Model.List is changed.
After that, the item click in the CollectionView does not work properly
Below is a bug video. What is to be done about this problem? https://user-images.githubusercontent.com/74590063/126623494-7f4214e8-c9f6-4ee8-a79a-b4b8781bf7b4.mp4