The problem is though that when I update an item within the collection, it is not reflecting on the GUI, despite all the right events being called.
I have stepped in and the set method of the Selected Customer is being called, and I then follow the On Property Changed("Customer Summary Details") call which goes into the "get" method of the Customer Summary Details property as expected.
is find when all you need to do is bind the data once and never expect it to change.
If I write a foreach loop and add them individually to the Level2Menu Items collection then it does display correctly.
Also as a test I added the following to the constructor: The reason the former works in the constructor is that the Binding has not taken place yet.
The problem is my normal bindings are updated, hoever the listview isn't updated at all, while the Clients Grouped is indeed updated upon object inspection.
I've also updated it with the VM now, however please note that I only posted the relevant information.
The change is not being reflected in the UI because when you Notify Property Change() the entire collection, instead of the indiviual property of the individual item, WPF detects it is actually the same instance (the same object reference to the same collection) as before, so nothing seems to have changed.
Good points on the way to implement INotify Property Changed and they should be helpful for OP, but the collection that requires refresh in this case is All Events which seems to be a part of the actual view instead a viewmodel. The changed does not mean when child properties are changed, but when you change the item at any index.
This object has a property called Summary Details of type Observable Collection which renders into a List View, line by line.
To do this, I have created a separate property on the View Model called Customer Summary Details which contains simply a get, that returns the collection contained within the customer I mentioned above.
I am just starting with MVVM and have hit a hurdle that I hope someone can help me with.
I am trying to create a simple View with 2 listboxes.
I'm using the MVVM pattern and want to update a List View using an observable collection. Namespace: @Halo Mediaz Not quite - Observable COllection implements INotify Collection Changed so that when items are added/removed then anything bound gets updated.