Hi, I'm just picking up WPF. I'm looking for a samples that show you a more realistic way to bind data to a ComboBox? The one in the SDK doesn't show me what I need.
I have a Person class that I load from dB into a DataSet. That class is bound to text boxes on my WPF form. IÃÂ have two way data binding. No problems here. One of the Person's addressÃÂ fields isÃÂ "state". I don't want the user to edit the state abbreviation directly, but instead want to limit the choices from another data table. Which means I have to bind the combobox to the data tabe, but are unsure how toÃÂ connect/bind it also with the person class so when the selection changes it gets reflected in the person class.
Can this be done just via XAML? Or doÃÂ I have to write code on combobox.SlectionChanged()ÃÂ to make explicit changes to the Person class?
View Complete Post