I have an updating issue with Binding in my Combo Box.
I have created a simplified example illustrate this problem. So in the image above, I have a Text Block (in black) that shows the 'Selected Person. The First Name and Last Name properties of the Selected Person are shown in the 2 Text Boxes below the Full Name.
This is the best approach in my opinion, and from your code snippet you almost follow it.
However, when I click a button to switch the Object Instance to obj2, the Combo Box Items Source gets populated correctly in the dropdown, but the Selected Value is set to Nothing instead of being equal to obj2. Problem: The Combo Box class searches for the specified object by using the Index Of method. took me more than a week to resolve this small fyn.
The Combo Box contains the names "Joe" and "Steve" and "Steve" is selected by default.
I think it's not really a satisfying solution (because you have to keep track of both Collections independently) but it works like this.
I'm trying to get a WPF combobox working (inside the WPFToolkit Datagrid), and I'm having trouble getting all the pieces aligned correctly.