-
Notifications
You must be signed in to change notification settings - Fork 547
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
fix: XamlRoot may be null when the SKXamlCanvas is unloaded #2854
Conversation
@mattleibow could it be possible to backport this one to 2.88? 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.
jeromelaban is a null check in on the root.Invalidate call needed for the same reason? Couldn't hurt.
That's fair. I ignored that particular site because the |
* fix: XamlRoot may be null when the SKXamlCanvas is unloaded * chore: Adjust more xamlroot uses --------- Co-authored-by: Matthew Leibowitz <[email protected]> (cherry picked from commit 8e7a51d)
…2884) * fix: XamlRoot may be null when the SKXamlCanvas is unloaded * chore: Adjust more xamlroot uses --------- Co-authored-by: Matthew Leibowitz <[email protected]> (cherry picked from commit 8e7a51d) Co-authored-by: Jérôme Laban <[email protected]>
Description of Change
Avoids an NRE when using a null
XamlRoot
on WinUI when the control is unloading.API Changes
None.
Behavioral Changes
None.
Required skia PR
None.