Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

When Combobox is open, Its editable TextBox selects first item automatically. How can I get rid of this?

$
0
0

Hi,

 

I have a custom Style of ComboBox. It is having PART_EditableTextBox.

Where I am using this combobox, I make it empty initially. Whenever user types something, I am opening this ComboBox and filtering it with PreviewKeyUp event. The problem is that, on first key press, It selcets the first item started with entered character and opens combobox, but on second key press it replaces last entered character because that was selected.

I want this in such a way that, on every key press it should not select anything and user should be able to enter text from first key press.


 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>