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

2174059 MAUI hit testing ignores pages loaded by PushModalAsync #24109

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

lizharems
Copy link
Contributor

@lizharems lizharems commented Aug 8, 2024

Description of Change

Updated VisualTreeElementExtension to get the MauiWinUiWindow Element, as its content member gets modal content in addition to underlying content

Tested in Maui Windows and Android with a test project from the linked work item. Verified in the Maui Sandbox with fix and without.

Also verified the initial bug didn't repro on android.

Issues Fixed

Bug# 2174059

Updated VisualTreeElementExtension to get the MauiWinUiWindow Element, as its content member gets modal content in addition to underlying content
@lizharems lizharems requested a review from a team as a code owner August 8, 2024 18:57
@lizharems lizharems self-assigned this Aug 8, 2024
Copy link
Member

@BretJohnson BretJohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that the fix is WinUI only. Did you also test on Android/iOS to confirm that they don't have this bug - that it's a WinUI only issue?

@lizharems
Copy link
Contributor Author

I see that the fix is WinUI only. Did you also test on Android/iOS to confirm that they don't have this bug - that it's a WinUI only issue?

From testing I wasn't able to repro it on Android, I need to set up my iOS device to test as I don't have a good remote simulator setup to test.

For context this code is windows only.

Update the code to use the UI.Xaml.Window instead of the MauiWinUIWindow
@lizharems lizharems requested a review from PureWeen August 20, 2024 20:50
@mattleibow mattleibow dismissed PureWeen’s stale review August 21, 2024 16:12

code changes applied

@mattleibow mattleibow merged commit 937f410 into main Aug 21, 2024
97 checks passed
@mattleibow mattleibow deleted the dev/ehare/Maui-LivePreview-Modal branch August 21, 2024 16:12
Redth pushed a commit that referenced this pull request Aug 22, 2024
* MAUI hit testing ignores pages loaded by PushModalAsync

Updated VisualTreeElementExtension to get the MauiWinUiWindow Element, as its content member gets modal content in addition to underlying content

* PR Feedback

Update the code to use the UI.Xaml.Window instead of the MauiWinUIWindow
@samhouts samhouts added fixed-in-net9.0-nightly This may be available in a nightly release! fixed-in-net8.0-nightly This may be available in a nightly release! labels Aug 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-net8.0-nightly This may be available in a nightly release! fixed-in-net9.0-nightly This may be available in a nightly release!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants