Focus on AUTO COMPLETE

Oct 18, 2015 at 6:05 PM
Hello Team

Thanks for sharing the community a wonderful control

I have one request.

Whenever i try to set the focus of the control through Focus() Method, it is not setting the focus to the control.

Can you explain me how to achieve it ?
Coordinator
Oct 21, 2015 at 6:25 PM
Try adding below code in AutoCompleteTextBox's OnApplyTemplate method.
this.GotFocus += AutoCompleteTextBox_GotFocus;
void AutoCompleteTextBox_GotFocus(object sender, RoutedEventArgs e)
{
    if (Editor != null)
    {
        Editor.Focus();
        Editor.SelectAll();
    }
}