方法一:
csharp
string test = null;
foreach (ComboBoxItem item in e.AddedItems)
{
test = item.Content.ToString();
break;
}
方法二:
csharp
ComboBoxItem cbi = (ComboBoxItem)(sender as ComboBox).SelectedItem;
string selectedText = cbi.Content.ToString();
方法三:
csharp
ComboBoxItem cbi = (ComboBoxItem)combobox_Test.SelectedItem; //combobox_Test为combobox的name
string selectedText = cbi.Content.ToString();