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