Search This Blog

Thursday, January 26, 2017

Find TextBox control ComboBox WPF

WPF > Controls > ItemsControl > ComboBox

Use FindName to find an element that has the provided identifier name.


PART_EditableTextBox
TextBox
Contains the text of the ComboBox

Example

var textBox = comboBox.Template.FindName("PART_EditableTextBox", comboBox) as TextBox;