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

Templated indicator view - improvements #25642

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

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Nov 2, 2024

Description of Change

This PR addresses several issues with the IndicatorView when using a DataTemplate, particularly around collection updates. Specifically, it aims to resolve the following bugs:

  • Indicator disappears on empty collection: When all items are removed, the indicators disappear as expected. However, upon adding items back, the indicators do not reappear.

  • Last indicator not rendering: In certain cases, adding new elements to the collection does not render the final indicator properly.

  • Incorrect visual state for the current page indicator: When an item is removed from the collection, the visual state of the current page indicator becomes incorrect.

This pull request, alongside PR #21980, which addresses the rendering and sizing issues of IndicatorView with DataTemplate, should resolve all known issues with IndicatorView in this context. If any issues remain, I’ll be disappointed—but I’ll make sure to address them.

Bug 1
NotReAppearing.mov
Bug 2
IsSelectedNotWorkingCorrectly.mov
Bug 3
LastItemNotAppearing.mov
After fixes
Working.mov

Issues Fixed

Fixes #25598

@kubaflo kubaflo requested a review from a team as a code owner November 2, 2024 06:46
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Nov 2, 2024
Copy link
Contributor

Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

for (int i = 0; i < 3; i++)
App.Click("AddItemButton");

VerifyScreenshot();
Copy link
Contributor

Choose a reason for hiding this comment

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

Snapshots already available in the latest build.

Example, iOS:
image


[Test]
[Category(UITestCategories.IndicatorView)]
public void IndicatorWithTemplateShouldBeVisible()
Copy link
Contributor

Choose a reason for hiding this comment

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

Test seems to crash on Windows:

The app was expected to be running still, investigate as possible crash
TearDown : The app was expected to be running still, investigate as possible crash

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think there's something wrong with the UI test with the Carousel view with the data template on Windows. Probably we will have the same crash without any changes. Like we do in this PR: #24776

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 community ✨ Community Contribution platform/android 🤖 platform/iOS 🍎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IndicatorView with Template wont show when ItemSource reaches 0 Elements
2 participants