You can associate an event KeyDownwith ComboBox, and then set the IsDropDownOpenvalue of the property .
in XAML:
<ComboBox x:Name="MyComboBox"
IsEditable="True"
IsReadOnly="False"
KeyDown="MyComboBox_KeyDown"/>
in the code behind:
private void MyComboBox_KeyDown(object sender, KeyEventArgs e) {
if (MyComboBox.Text.Length > 0)
MyComboBox.IsDropDownOpen = true;
}
source
share