tags:

views:

477

answers:

2

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?

A: 

When a comboxbox gains focus you can disable the text highlighting (i.e. by selecting no text upon the GotFocus event). However, when you pulldown the combobox the system is going to locate the item in the list and make that the selected item. This in turn automatically highlights the text. If I understand the behaviour you are looking for, I do not believe it is fully possible.

clsturgeon
you are right ? it seems not possible even if I use IsTextSearchEnabled property to false as mentioned by asim.
Panks
A: 

Did you set false to IsTextSearchEnabled property of the comboBox ?? It will disable selection of the text. hope that will help.

Asim Sajjad
it doesn't change the behavior !
Panks