參考代碼:
private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
ComboBox combobox = sender as ComboBox;
然後妳可以用combobox.SelectedValue去執行自己的邏輯
}