I grabbed this code from MSDN. What Im trying to do is similar, but use a list instead of three different strings. so say
List strList = new Li
If you don't want to do this following a binding/mvvm pattern, it is quite simple to just do the following:
foreach (var item in items)
{
_comboBox.Items.Add(item);
_comboBox.SelectedValuePath = "ID";
_comboBox.DisplayMemberPath = "Name";
}
Which can be accessed later like so:
var id = _comboBox.SelectedValue;