Wpf listview binding not updating speed dating wpg
What you have now is a To String() implementation, which does not get updated once it reports to the UI.
On Property Changed("My Items"); My Items[My Items. Has Information = true; // Note that "Selected Item" is persisted correctly, and always // points to the selected item that we want to update.
The problem is that after you swap out one Observable Collection for a new one, the view is still bound to the old one.
A common “fix” for this problem is to fire a Property Changed event to notify the view that the collection has been replaced.
This interface raises an event whenever the collection is modified by insertion, removal, or replacement.
It expects to be notified when items are added, removed, or replaced within that instance of the collection.
It wasn’t the collection that changed, it was the property that points to the collection.