Value of items are not updating in ListView

Hi everybody,
This is one that have been annoying me for a while. I have a ListView that uses an OvservableCollection as ItemSource. When I click on an item, the app pushes a new page to edit the item. When I get back to the ListView, the value is still the old one. The items in the collection implement INotifyPropertyChanged, this should allow the change to be detectable, but the ObservableCollection either does not detect the change or does not pass the notification to the ListView. I tried to set the ItemSource to null, then set the ItemSource to the collection again. Yes, this update the ListView, but it also scroll the ListView. I also tried to use the ScrollTo method of the ListView. This does assure that the item will be visible, but not that the position will be the same, sometime it scroll a little bit. There got to be a better way… Is it?

Thanks for the help,
LP

Posts

Sign In or Register to comment.