Autoupdate list in wpf

I want to display a bunch of objects that I have created in a ListBox. My objects are implementing the INotifyPropertyChanged interface. I tried to use the ObservableCollection that I linked to the Listbox control (listbox1.DataContext = MyCollection) But that's not exactly what I want to do because the Listbox is not updated when one of the properties of one of my objects in MyCollection changes. I found this blogposting: http://sweux.com/blogs/psampaio/index.php/2009/04/13/creating-a-custom-observable-collection-in-wpf

Is this the easiest / only way to keep track of multiple objects?

0


a source to share


1 answer


I'm not sure, but have you tried using datatemplate for your list items? for example a textbox that explicitly binds it to the appropriate anchor.



0


a source







All Articles