Value of items are not updating in ListView RRS feed

  • Question

  • User117362 posted

    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

    Friday, September 23, 2016 7:20 PM

All replies

  • User2148 posted

    You should post a repo so we could take a look

    Friday, September 23, 2016 9:09 PM