Lets say we got a simple VM class
public class PersonViewModel : Observable
{
private Person m_Person= new Person(\"Mike\", \"Smith\");
The TwoWay binding works as it should, but ComboBox
doesn't update itself on the UI when you set SelectedItem
or SelectedIndex
from code. If you want this functionality, just extend ComboBox
and listen to SelectionChanged
inherited from Selector
or if you only want to set an initial selection, do it on Loaded
.