Skip to content

setFocus to textbox on NavigationViewItem clicked #4805

Discussion options

You must be logged in to vote

Hi @massamino , the NavigationView is not part of the CommunityToolkit, so you might want to try out the WinUI repo for any questions related to this control.

That said, have you tried setting the textbox.Focus(FocusState.Programmatic) in the Loaded event of the Page instead of the OnNavigatedTo? That might work.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@massamino
Comment options

@niels9001
Comment options

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