The reason why it was so hard for me to pin this down is because the collections for the combos populated just fine, when I had my property changed event in my view model.
So, it was odd to me that I could do whatever I wanted to the collection and it was reflected in the UI, but I couldn't set values from the view model. I have been able to get my UI to work now, regardless of which way I set my value.
The Combo Box Display Member Path is bound to 'Full Name' and the combobox contains a list of Person objects.
The 'Full Name' property should be the same in the Text Block, Combo Box, and Combo Box dropdown list.
If I add a Break Point to the Setter, it is only fired when the collection is initialized, and NOT when an item is added to the collection. All is currently running on the same thread, but I'd also like to look at putting the Get All Server method into a Task. Start New so it runs on a different thread and doesn't interrupt the UI animation, but when I do this the Servers collection is populated, but the Combo Box on the UI isn't updated.
So, The main problem is the Databases collection not updating the UI when an item is added.
I have tried Selected Item, Selected Index, Text and nothing works for me.
If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
The problem is simple: By default WPF compares Selected Item to each item in the Items Source by reference, meaning that unless the Selected Item points to the same item in memory as the Items Source item, it will decide that the item doesn’t exist in the Items Source and so no item gets selected.
However, it is ONLY updating correctly in the Text Block.
The combo Box Dropdown just updates the first time it is opened and doesn't update after that.
Hi, I have an Observable Collection in my View Model that I'm binding to the Items Source of a Combo Box.