Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8896311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:00:38+00:00 2026-06-15T00:00:38+00:00

I have a ComboBox with the values 1..21 When I drop down the comboBox,

  • 0

I have a ComboBox with the values 1..21

When I drop down the comboBox, number 1 (item 0) is enabled, but all the other items are grayed out, and I can’t select any of them. In fact, I can only see their values when scrolling through the list – otherwise they are completely transparent.

Here is my winrt-xmal:

            <ComboBox x:Name="cmbxInitialMapZoomSetting" Grid.Row="1" Grid.Column="1" Height="32" Margin="4" Width="120" HorizontalAlignment="Left" SelectionChanged="CmbxInitialMapZoomSetting_OnSelectionChanged">
                <Button Content="1"/>
                <Button Content="2"/>
                <Button Content="3"/>
        . . .
                <Button Content="19"/>
                <Button Content="20"/>
                <Button Content="21"/>
            </ComboBox>

…and here is the related code:

private void CmbxInitialMapZoomSetting_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
    ApplicationData.Current.LocalSettings.Values["MapZoomSetting"] = cmbxInitialMapZoomSetting.SelectedValue;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:00:39+00:00Added an answer on June 15, 2026 at 12:00 am

    Is there a reason you are putting Buttons in ComboBox? You could use ComboBoxItems instead:

    <ComboBox x:Name="cmbxInitialMapZoomSetting" Height="32" Margin="4" Width="120" HorizontalAlignment="Left" SelectionChanged="CmbxInitialMapZoomSetting_OnSelectionChanged">
        <ComboBoxItem>1</ComboBoxItem>
        <ComboBoxItem>2</ComboBoxItem>
        <ComboBoxItem>3</ComboBoxItem>
        <ComboBoxItem>4</ComboBoxItem>
        <ComboBoxItem>5</ComboBoxItem>
    </ComboBox>
    

    You only need a minor modification of your event handler to make this work:

    private void CmbxInitialMapZoomSetting_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
    {
        ApplicationData.Current.LocalSettings.Values["MapZoomSetting"] = (cmbxInitialMapZoomSetting.SelectedValue as ComboBoxItem).Content.ToString();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a combobox that passes along values in text, but they can have
I have editable combobox where not always the preferred item is in the drop-down
I have a scenario where combobox can have same string values. for exa combo
i have combobox in datagrid (sourse in mysql (web)) how i can get value
In my application I'd like to have a drop-down box to choose a table
I am developing a small desktop app, and there are several drop-down lists (combobox-es)
I have the items for a combo box being loaded from a store but
I have a data-bound combobox on a Windows form. When I select an item,
I'm trying to replicate an HTML SELECT element (drop-down-list or combobox) in Flash (AS3).
I have a style for a ComboBox that I've been using for awhile, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.