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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:08:52+00:00 2026-05-20T16:08:52+00:00

When I type in the combobox I automatically opens enables the dropdown list searchComboBox.IsDropDownOpen

  • 0

When I type in the combobox I automatically opens enables the dropdown list

searchComboBox.IsDropDownOpen = true;

The problem here is – the text gets highlighted and the next keystrock overwrites the previous text.

How can I disable the text highlighting when ComboBox DropDown opens up?

  • 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-20T16:08:53+00:00Added an answer on May 20, 2026 at 4:08 pm

    Better late than never and if some one else hit this proplem he might use this.

    There is away todo this if you override combobox.
    First get handle on the textbox that is used in the template and register to selectionchanged event.

    public override void OnApplyTemplate()
    {
      base.OnApplyTemplate();
    
      var element = GetTemplateChild("PART_EditableTextBox");
      if (element != null)
      {
        var textBox = (TextBox)element;
        textBox.SelectionChanged += OnDropSelectionChanged;
      }
    }
    
    private void OnDropSelectionChanged(object sender, RoutedEventArgs e)
    {
        // Your code
    }
    

    Then in the event handler you can set the selection again like you want it to be. In my case I was calling IsDropDownOpen in code. Saved selection there then put it back in the event handler. Ugly but did the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to initiate the drop down list click for a combobox of type
When I make selection in ComboBox, and then type some text in TextBox, I
how can i remove loading.. text when i type a letter into remote ComboBox??
If I bind a WinForms ComboBox to an enum type's values, i.e. combo1.DropDownStyle =
I've got the following.. <ComboBox Grid.Row=2 Grid.Column=2 Grid.RowSpan=2 ItemsSource={Binding ShipperAddresses} Text={Binding ShipperAddress} Margin=85,2,0,2> <ComboBox.ItemTemplate>
I have a whole bunch of code that is dependent on the ComboBox type,
I have this stupid problem. I bind from view model class property type of
i have a combobox : <Grid> <ComboBox Height=52 HorizontalAlignment=Left ItemsSource={Binding templatesNames} SelectedValuePath=Type.FullName Margin=169,43,0,0 Name=comboBox1
In plain combobox when comboboxstyle is set as Simple and user something type in
I have a ComboBox with a remote json store. It lets the user type

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.