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?

Était-ce utile?

La solution

Your Friend class needs to implement INotifyPropertyChanged.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top