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

[Windows] Disable HitTest when showing EmptyView on CollectionView #26006

Merged
merged 5 commits into from
Nov 28, 2024

Conversation

rmarinho
Copy link
Member

Description of Change

On the the templates for FormsListViewTemplate the EmptyViewContentControl is bellow the ScrollViewer so it does t receive inputs even if no items are showing.

Issues Fixed

Fixes #19609

@rmarinho rmarinho requested a review from a team as a code owner November 21, 2024 01:11
@rmarinho rmarinho added this to the .NET 9 SR2 milestone Nov 21, 2024
@rmarinho rmarinho added platform/windows 🪟 area-controls-collectionview CollectionView, CarouselView, IndicatorView labels Nov 21, 2024
@rmarinho rmarinho requested review from Foda, jsuarezruiz and PureWeen and removed request for StephaneDelcroix and jfversluis November 21, 2024 01:12

[Test]
[Category(UITestCategories.CollectionView)]
public void CanTapButtonOnEmptyView()
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is failing on Android, iOS and Catalyst.

at Microsoft.Maui.TestCases.Tests.Issues.Issue19609.CanTapButtonOnEmptyView() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue19609.cs:line 19

Could you check that the button is on the screen? You can use the timeout parameter to wait for one second for example.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hum seems the screenshot is on the previous screen?

but I have a waiterElement

	App.WaitForElement("btnClick");

@rmarinho rmarinho requested a review from jsuarezruiz November 27, 2024 12:00
@rmarinho rmarinho merged commit b7069ed into main Nov 28, 2024
104 checks passed
@rmarinho rmarinho deleted the fix-19609 branch November 28, 2024 18:28
@samhouts samhouts added fixed-in-9.0.21 fixed-in-net8.0-nightly This may be available in a nightly release! labels Dec 16, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView fixed-in-9.0.21 fixed-in-net8.0-nightly This may be available in a nightly release! platform/windows 🪟
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Win: Button clicked event and command will not be occurred in EmptyView of CollectionView
4 participants