Hovo
Hovo

Reputation: 790

Make Longlistselector autoupdate itself automatically?

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?

Upvotes: 1

Views: 297

Answers (1)

Claus J&#248;rgensen
Claus J&#248;rgensen

Reputation: 26344

Your Friend class needs to implement INotifyPropertyChanged.

Upvotes: 1

Related Questions