title: How do i get the text value from a ComboBox in WPF?
body: <p>This may be something covered in C# 101 but I haven't been able to find an easy to understand answer to this question anywhere on google or stack overflow.  Is there a better way to return a text value from a combobox without using this crappy work around I came up with?</p>
  
  <pre><code>private void test_site_SelectionChanged(object sender, SelectionChangedEventArgs e)
  {
      string cmbvalue = "";
  
      cmbvalue = this.test_site.SelectedValue.ToString();
      string[] cmbvalues = cmbvalue.Split(new char[] { ' ' });
  
      MessageBox.Show(cmbvalues[1]);
  }
  </code></pre>
  
  <p>Please don't rail on me to hard I'm really just now picking up c# and OOP.</p>