I'm not getting control under hub section RRS feed

  • Question

  • Hi,

    How to get controls of combobox item whether checked or not in C#.
    here is an XAML code for which i have created for combobox.

                            <ComboBox x:Name="myComboBox">
                                <ComboBoxItem Content="Male"/>
                                <ComboBoxItem Content="Female"/>
                                <ComboBoxItem Content="other"/>
                            <Button x:Name="nextButton" Content="Next"/>
    and code behind it

    private void nextButton_Click(object sender, RoutedEventArgs e) { if(myComboBox.isSelected = male)


    \\TODOD } else if(myComboBox.isSelected = female)


    \\TODOD } else if(myComboBox.isSelected = other)


    \\TODOD }

    But Im Getting error. Please help me

    Saturday, July 26, 2014 11:10 PM


All replies