How can I bind an IList
item to a ComboBox
through the codebehind.cs file.
Please explain with simple steps.
I need the steps for two way binding, not by setting ItemsSource
.
I need something like:
myComboBox.SetBinding(ItemsControl.ItemsSourceProperty,
new Binding { Source = myList });
but I need the SelectedItem
also.
Thanks