Skip to content
Discussion options

You must be logged in to vote

Controls without input focus often require setting Focusable="True" on them to make them eligible for focus. You can diagnose this using DevTools.

Removing focus is harder. You're supposed to focus an alternate element instead which feels pretty awkward to me. You can still get the FocusManager from a TopLevel and call ClearFocus for now...but not sure if that's going away:

[Unstable("This API might be removed in 11.x minor updates. Please consider focusing another element instead of removing focus at all for better UX.")]
void ClearFocus();

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jyswjjgdwtdtj
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