title: What is the simplest way to get the selected text of a combo box containing only text entries?
body: <p>My WPF ComboBox contains only text entries. The user will select one. <strong>What is the simplest way to get the text of the selected ComboBoxItem?</strong> Please answer in both C# and Visual Basic. Here is my ComboBox:</p>
  
  <pre><code>&lt;ComboBox Name="cboPickOne"&gt;
      &lt;ComboBoxItem&gt;This&lt;/ComboBoxItem&gt;
      &lt;ComboBoxItem&gt;should be&lt;/ComboBoxItem&gt;
      &lt;ComboBoxItem&gt;easier!&lt;/ComboBoxItem&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p>By the way, I know the answer but it wasn't easy to find. I thought I'd post the question to help others. REVISION: I've learned a better answer. By adding SelectedValuePath="Content" as a ComboBox attribute I no longer need the ugly casting code. See Andy's answer below.</p>