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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/windows 🪟
Projects
Status: Ready To Review
Development

Successfully merging this pull request may close these issues.

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