-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Xaml Islands Fixes for FocusManager.GetFocusedElement and ContentDial… #3352
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
Conversation
Thanks azchohfi for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
@azchohfi can you link to the blog post here or in the issue with the list of all the changes XAML Islands needs? Will be good for future reference to have it linked to here if folks stumble upon this in the future. |
UnitTests/UnitTests.XamlIslands.UWPApp/XamlIslandsTest_TokenizingTextBox.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor issues/comments on manual tests, but otherwise looks great, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 🚀 🚀
Fixes #3340 #3216 #3205
Fixed issues with any class using FocusManager.GetFocusedElement when running inside the context of a Xaml Island, as well as one last issue with TextToolbar's ContentDialog not having it's XamlRoot set, also in the context of a Xaml Island.
PR Type
What kind of change does this PR introduce?
What is the current behavior?
FocusManager.GetFocusedElement() always returns null when executed in the context of a Xaml Island, so any class that leverages this method will not work properly on Xaml Islands, as reported in #3340.
What is the new behavior?
If XamlRoot is available, calls the new overload FocusManager.GetFocusedElement(XamlRoot), with the appropriate XamlRoot.
PR Checklist
Please check if your PR fulfills the following requirements: