locked
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.

    <Hub>
                <HubSection>
                    <DataTemplate>
                        <StackPanel>
                            <ComboBox x:Name="myComboBox">
                                <ComboBoxItem Content="Male"/>
                                <ComboBoxItem Content="Female"/>
                                <ComboBoxItem Content="other"/>
                            </ComboBox>
                            <Button x:Name="nextButton" Content="Next"/>
                        </StackPanel>
                    </DataTemplate>
                </HubSection>
            </Hub>
    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

Answers

All replies