Set Cursor Focus into Editable Combobox in WPF C#
问题 I have editable combobox in WPF and I want to set focus from C#, I am using Combobox.Focus(), but it shows only selection but I want edit option where user can start entering. Update : Figured out FIX I ended up adding 'Loaded' Event to the Combobox and Wrote following Code to get focus in and it worked Fine private void LocationComboBox_Loaded(object sender, RoutedEventArgs e) { ComboBox cmBox = (System.Windows.Controls.ComboBox)sender; var textBox = (cmBox.Template.FindName("PART