WPF IsEditable in ComboBox - how to remove autocomplete

I have a ComboBox, and I would like to allow only what was printed to be entered and displayed in the TextBox. so I used IsEditable="True" The problem is that the car computer enters and completes the text in one of the elements.

eg:

<ComboBox IsEditable="True">
     <ComboBoxItem>ABC</ComboBoxItem>
     <ComboBoxItem>PPP</ComboBoxItem>
     <ComboBoxItem>QQQ</ComboBoxItem>
     <ComboBoxItem>NNN</ComboBoxItem>
</ComboBox>

When I type “A”, I get “ABC” in the TextBox where “BC” is highlighted (and I would like to get only “A”)

+5
source share
2 answers
<ComboBox IsTextSearchEnabled="false" ... />
+9
source
c1ComboBox1.AutoComplete = false;

or

<c1:C1ComboBox HorizontalAlignment="Left" Width="249" AutoComplete="False">
+2
source

All Articles