private TextBox GetTextBox(AutoCompleteBox control) { return(control.GetTemplateChildren() .OfType <TextBox>() .First()); }