Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShowMessageAsync keyboard focus #1975

Closed
olegsavelos opened this issue Jun 12, 2015 · 4 comments
Closed

ShowMessageAsync keyboard focus #1975

olegsavelos opened this issue Jun 12, 2015 · 4 comments

Comments

@olegsavelos
Copy link

When showing a message the keyboard focus is not restored to previous element.
Is there any workaround?

@maratoss
Copy link

Did you find a solution of this problem?

@olegsavelos
Copy link
Author

Nope :(

@maratoss
Copy link

Huh, i found :)

var focusedElement = Keyboard.FocusedElement;
await ((IApp)Application.Current).Window.ShowMessageAsync(errorTitle, errorText);
focusedElement.Focus();

@olegsavelos
Copy link
Author

Will try that out.
Thanks.

@punker76 punker76 closed this as completed Nov 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants