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
You will have to override the Focus method to find the template of the Textbox.
public class FocusableAutoCompleteBox : AutoCompleteBox
{
public new void Focus()
{
var textbox = Template.FindName("Text", this) as TextBox;
if (textbox != null) textbox.Focus();
}
}