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

  • Home
  • SEARCH
  • 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 3393336
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:02:19+00:00 2026-05-18T04:02:19+00:00

I have editable combobox where not always the preferred item is in the drop-down

  • 0

I have editable combobox where not always the preferred item is in the drop-down list.

I would like to have the possibility of manually entering text in the textbox which is propagated to the string bound to SelectedValue.

Right now the string bound to SelectedValue is only updated if the entered value is on of the ones in the ComboBox items.

How do I allow custom values not available in the ComboBox list to be manually entered and properly propagated to bound value?

  • 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-05-18T04:02:20+00:00Added an answer on May 18, 2026 at 4:02 am

    I was just doing this yesterday and today and it looks like the following:

    1. set the combobox IsEditable="true"

    2. instead of binding to SelectedItem, bind to the Text property of the combobox

    3. if you’re binding to a custom object instead of just strings, you need to also set TextSearch.TextPath="NameOfField". This lets the text search behavior work, and also shows this property in the textbox as well.

    All in all, I ended up with something like:

    <ComboBox x:Name="c" 
              IsEditable="True" 
              IsTextSearchEnabled="True" 
              IsTextSearchCaseSensitive="False" 
              StaysOpenOnEdit="True"
              Text="{Binding NameOnViewModel}"
              TextSearch.TextPath="NameOnChildItems"  
              ItemsSource="{Binding Items}" 
              ItemTemplate="{StaticResource DataTemplate}" />
    
    <TextBlock Text="{Binding ElementName=c,Path=Text}" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using editable combobox for my application. Combobox have default behavior like If
I would like to have a ComboBox control on a form which will be
I have a combobox and it's editable. So the user can select an item,
I have an editable combo box in wpf-mvvm application. I would like to add
I have a problem with AutoCompleteBox. I wanted to use it as editable combobox.
I have an editable WPF ComboBox with TextSearchEnabled. I need to force the user's
I have a WPF combobox...which is non-editable. When I tab into this combobox...I have
I have an editable mx:Combobox . I want to catch two events: When a
I have an editable ComboBox: <ComboBox IsEditable=true/> What is the event that is raised
How to open ComboBox automatically? I have an editable ComboBox. I want it to

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.