Skip to content
Discussion options

You must be logged in to vote

@cocofaivre Perhaps not the cleanest of solutions, but this could be an option. Simply pushing a call to Focus() onto the back of the UI message pump:

private void PopupBox_Opened(object sender, RoutedEventArgs e)
{
    Dispatcher.BeginInvoke(() => { input_search_n.Focus(); });
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cocofaivre
Comment options

Answer selected by cocofaivre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants