I have a class named MyWindow the derives from Window. I use the MVVM pattern so in code-behind I have the following field:
public MyViewModel ViewModel = new MyViewModel();
ViewModel contains a collection of Person, and all I'd like to do is to bind a ComboBox to this collection, show Person.Name as the header for each Person.
I would also like to have another field in ViewModel that will be data-bound to the selected item.
Please help me.
 
     
     
    