The ComboBox control is not editable by default. But you can control this behavior to provide the user with the option to manually enter the desired value, directly in the ComboBox control. The IsEditable property is used to add this functionality. Set it to True, to change it to an editable ComboBox. Consider the following code:
<ComboBox Width="150" Height="26" Margin="10" IsEditable="True"> <ComboBoxItem Content="Item 1" /> <ComboBoxItem Content="Item 2" IsSelected="True" /> <ComboBoxItem Content="Item 3" /> <ComboBoxItem Content="Item 4" /> <ComboBoxItem Content="Item 5" /> </ComboBox>
If you run the preceding code, you can see the following UI, where the control now allows you to enter text to it: