when I try to focus on my \"autocompletetextbox\" I failed I write autocompletetextbox.focus() but the cursor still focus in another what should I do or write t
autocompletetextbox.focus()
You could also use a extension method for this:
public static void ForceFocus(this AutoCompleteBox box) { if (box.Template.FindName("Text", box) is TextBox textbox) { textbox.Focus(); } }