I have two ComboBoxes
in WPF. I have a bit crisis with their events. When I use the event of ComboBox1_SelectionChanged
, I want to get two selectedValues
, but ComboBox2
doesn't get value because there is no event How to solve this? Any suggestion?
private void ComboBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (ComboBox1.SelectedValue == "Shoe" && ComboBox2.SelectedValue == "Nike")
{
//TODO
}
}