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 8137175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:00:59+00:00 2026-06-06T11:00:59+00:00

a simple xaml: <ComboBox Height=23 Name=status IsReadOnly=False ItemsSource=? Width=120> </ComboBox> What you need to

  • 0

a simple xaml:

<ComboBox
    Height="23" Name="status"
    IsReadOnly="False"
    ItemsSource="?"
    Width="120">
</ComboBox>

What you need to write to С# that stick items in the drop-down list right here

  • 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-06T11:01:01+00:00Added an answer on June 6, 2026 at 11:01 am

    Your ItemsSource is a simple binding to a collection of [something] that will fill out the combolist, here’s a quick sample:

    public class MyDataSource
    {
        public IEnumerable<string> ComboItems 
        {
            get
            {
                return new string[] { "Test 1", "Test 2" };
            }
        }
    }
    
    <ComboBox
        Height="23" Name="status"
        IsReadOnly="False"
        ItemsSource="{Binding Path=ComboItems}"
        Width="120">
    </ComboBox>
    

    That’s not a complete sample, but it gives you the idea.

    It’s also worth noting that you don’t have to use the ItemsSource property, this is also acceptable:

    <ComboBox
        Height="23" Name="status"
        IsReadOnly="False"
        Width="120">
        <ComboBox.Items>
            <ComboBoxItem>Test 1</ComboBoxItem>
            <ComboBoxItem>Test 2</ComboBoxItem>
        </ComboBox.Items>
    </ComboBox>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this very simple Combobox in my XAML: <ComboBox Name=cmb1 Width=200 Height=23 ItemsSource={Binding}
Consider the following, simple code: XAML: <Grid Height=60 Name=grid> <Grid.ColumnDefinitions> <ColumnDefinition Width=162* /> <ColumnDefinition
I have a very simple XAML form, that has one namespace definition. For some
Here is peace of the XAML code from my page: <ComboBox Grid.Row=2 Grid.Column=1 Name=Player2
Having the following very simple xaml: <DocumentViewer Name=dv> <FixedDocument Name=fd Loaded=fd_loaded> <FixedDocument.Resources> <Style x:Key=TestStyle>
The problems is simple: when ItemsSource is updated Combobox doesn't refresh e.g. new items
I have a simple combobox with a checkbox inside as such: <ComboBox Height=23 HorizontalAlignment=Left
I have a WPF / XAML Window that contains a ComboBox that is giving
Hi I try set default value for comboBox. XAML: <ComboBox Name=StatusCombo Style={StaticResource statusComboStyle} SelectedValuePath=StatusMsg
I have created blank C#/XAML Windows 8 application. Add simple XAML code: <Page x:Class=Blank.MainPage

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.