Im trying to do a CASE for the option quality but Im receiving a operator error of "==" what is the solution for this problem.?
This is the code behind
private void myComboBoxThatICreatedInXaml_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (myComboBoxThatICreatedInXaml.SelectedValue.ToString == Low)
{
QualityChoices.Add(YouTubeQuality.QualityHigh);
case
(myComboBoxThatICreatedInXaml.SelectedValue.ToString == Medium)
{
QualityChoices.Add(YouTubeQuality.QualityMedium);
}
case
(myComboBoxThatICreatedInXaml.SelectedValue.ToString == High)
{
QualityChoices.Add(YouTubeQuality.QualityHigh);
}
}
And this is my xaml code.
<ComboBox x:Name="myComboBoxThatICreatedInXaml" SelectionChanged="myComboBoxThatICreatedInXaml_SelectionChanged" >
<ComboBoxItem Tag="LW">Low</ComboBoxItem>
<ComboBoxItem Tag="MD">Medium</ComboBoxItem>
<ComboBoxItem Tag="HG">High</ComboBoxItem>
</ComboBox>