Question

I want to display a bunch of Objects i have created in a ListBox. My objects implement the INotifyPropertyChanged Interface. I tried to use an ObservableCollection, which i have bound to a listbox Control (listbox1.DataContext = MyCollection) But this does not exactly what i want to do, because the Listbox is not refreshed when one of the properties of one of my objects in MyCollection changes. I have found this blogposting: http://sweux.com/blogs/psampaio/index.php/2009/04/13/creating-a-custom-observable-collection-in-wpf

is this realy the easyiest/only way to keep track of several objects?

Was it helpful?

Solution

I'm not sure, but have you tried using a datatemplate for your listbox items? like, a textbox that explicitly sets it's text to the appropriate binding.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top