Question

I have a class FriendsByFirstLetter derived from ObservableCollection<Group<Friend>>, where Group<T> is derived from ObservableCollection<T> too. I've set FriendsByFirstLetter object - myFriendsByFirstLetter to myLonglistselector.ItemsSource.

Now I change (myFriendsByFirstLetter[0][0] as Friend).Age = 111; property, but myLonglistselector doesn't show changes, though it shows changes after myFriendsByFirstLetter[0][0] = myFriendsByFirstLetter[0][0];

What i have to do to make myLonglistselector autoupdate itself automatically?

Was it helpful?

Solution

Your Friend class needs to implement INotifyPropertyChanged.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top