private static void EnableEditing(ComboBox comboBox) { comboBox.IsEditable = true; comboBox.IsReadOnly = false; comboBox.Text = ""; comboBox.UpdateLayout(); var x = comboBox.Template.FindName("PART_EditableTextBox", comboBox) as TextBox; x.Focus(); x.SelectAll(); }