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

[iOS] Add templated cells as children of the CollectionView2 #26357

Merged
merged 5 commits into from
Dec 6, 2024
Merged

Conversation

rmarinho
Copy link
Member

@rmarinho rmarinho commented Dec 4, 2024

Description of Change

When porting to the new implementation we forgot to move add the inflated templates as a children of the ItemsView.

This pull request includes several changes to improve the functionality and maintainability of the ItemsViewController2 and TemplatedCell2 classes, as well as adding a new test case for a specific issue. Also does some cleanup

Codebase simplification:

Enhancements to binding logic:

New test case:

  • src/Controls/tests/TestCases.HostApp/Issues/Issue26066.xaml and src/Controls/tests/TestCases.HostApp/Issues/Issue26066.xaml.cs: Added a new test case to address Issue 26066, which involves testing the CollectionViewHandler2 with RelativeSource binding to AncestorType. [1] [2]
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue26066.cs: Added a corresponding test method to verify that CollectionView2 can find the ancestor type and handle the binding correctly.

Issues Fixed

Fixes #26066

@rmarinho rmarinho added t/bug Something isn't working area-controls-collectionview CollectionView, CarouselView, IndicatorView collectionview-cv2 labels Dec 4, 2024
@rmarinho rmarinho requested a review from a team as a code owner December 4, 2024 12:41
@rmarinho rmarinho added this to the .NET 9 SR2 milestone Dec 4, 2024
[iOS] Remove dispose

[ios] Revert to view.SetValueFromRenderer

Revert dispose changes

Fix copy

Add CV1 and CV2 hardcoded

Revert "Revert dispose changes"

This reverts commit 94affdd.

Cleanup
@rmarinho rmarinho merged commit b479513 into main Dec 6, 2024
104 checks passed
@rmarinho rmarinho deleted the fix-26066 branch December 6, 2024 19:30
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 collectionview-cv2 fixed-in-9.0.21 t/bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

CollectionViewHandler2 RelativeSource binding to AncestorType not working
5 participants