title: How to IsSelected a ComboBoxItem in code behind?
body: <p>My <code>ComboBoxItems</code> are created in run-time by C# code. I can't figure out how to <code>IsSelect</code> a <code>ComboBoxItems</code> in code behind so it shows as default when <code>ComboBox</code> runs.</p>
  
  <p>Basically I'm trying to convert the 2nd line of the following XAML to C# code</p>
  
  <pre><code>&lt;ComboBox x:Name="comboBox1"&gt;
      &lt;ComboBoxItem IsSelected="True"&gt;&lt;/ComboBoxItem&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p>To C#:</p>
  
  <pre><code>comboBox[0].IsSelected = "True" // this doesn't exit..
  </code></pre>