Search This Blog

Showing posts with label ComboBox. Show all posts
Showing posts with label ComboBox. Show all posts

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;