Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

@kubaflo kubaflo added platform/android platform/ios area-controls-collectionview CollectionView, CarouselView, IndicatorView labels Nov 2, 2024
@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

@rmarinho
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@kubaflo kubaflo self-assigned this Mar 18, 2025
@jfversluis
Copy link
Member

/rebase

@jfversluis jfversluis added this to the .NET 9 SR8 milestone Jun 4, 2025
@PureWeen PureWeen changed the base branch from main to inflight/current June 6, 2025 15:34
@PureWeen PureWeen merged commit 33b241a into dotnet:inflight/current Jun 6, 2025
1 check passed
PureWeen added a commit that referenced this pull request Jun 21, 2025
For more information about inflight process check
https://github.com/dotnet/maui/wiki/Inflight-Branch-Process

# .NET MAUI Release Notes - inflight/candidate Branch

## MAUI Product Fixes
* [iOS] Fix SwipeView programmatic open when background color is set by
@Shalini-Ashokan in #29765
* [iOS] FormattedText with text color causes stack overflow - fix by
@kubaflo in #29874
* [iOS] Fix AdaptiveTrigger not working as expected by @jsuarezruiz in
#20987
* [iOS] Fix for Flyout title is not broken over multiple lines when you
rotate your screen by @BagavathiPerumal in
#29171
* [Windows] Fix for Assigning null to the SelectedItem of the
CollectionView in the SelectionChanged event does not clear the
selection by @SyedAbdulAzeemSF4852 in
#29288
* Fix TapCoordinates method in Catalyst by @jsuarezruiz in
#29775
* Fixed ItemSpacing on CarouselView resizes items [Android] by
@Dhivya-SF4094 in #29796
* Perf : ButtonContentTypeConverter now using InvariantCulture to parse
double by @antoine-jonathan in #25393
* ToolbarItem behavior with ImageSource iOS - fix by @kubaflo in
#28833
* [Android] Fixed Button Shadow Color Transparency Not Applied Correctly
by @NanthiniMahalingam in #29371
* Don't call NSAttributedString with HTML from a background thread by
@kubaflo in #26153
* [Windows] Implemented the Resize and Downsize functions in the
W2DImage class by @HarishwaranVijayakumar in
#29138
* Templated indicator view - improvements by @kubaflo in
#25642
* Update Issue25946.xaml by @anandhan-rajagopal in
#30025

## Testing
* Fixed Test case failure in PR 26153 - iOS by @kubaflo in
#29906
* Fixed Test case failure in PR 25642 - snapshots by @kubaflo in
#29881
* [Testing] Feature Matrix UITest Cases for RadioButton by
@TamilarasanSF4853 in #29744
* [Testing] Feature Matrix UITest Cases for CollectionView ItemsSource
Feature by @LogishaSelvarajSF4525 in
#29322
* [Testing] Feature Matrix UITest Cases for Stepper by
@nivetha-nagalingam in #29731
* [Testing] Feature Matrix UITest Cases for CheckBox Control by
@anandhan-rajagopal in #29739
* Update the comment for the test properties by @mattleibow in
#27306

## Dependency Updates
* No changes in this category

## Docs
* No changes in this category

## Housekeeping
* [create-pull-request] automated change by @github-actions[bot] in
#29875
* [create-pull-request] automated change by @github-actions[bot] in
#29792
* [create-pull-request] automated change by @github-actions[bot] in
#29760

**Full Changelog**:
origin/main...origin/inflight/candidate
@PureWeen PureWeen modified the milestones: .NET 9 SR8, .NET 9 SR9 Jun 23, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 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 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
5 participants