Skip to content

[Testing] Additional Feature Matrix Test Cases for CollectionView#32432

Merged
kubaflo merged 7 commits intodotnet:inflight/currentfrom
TamilarasanSF4853:collectionviewfeaturematrix-update-1
Mar 4, 2026
Merged

[Testing] Additional Feature Matrix Test Cases for CollectionView#32432
kubaflo merged 7 commits intodotnet:inflight/currentfrom
TamilarasanSF4853:collectionviewfeaturematrix-update-1

Conversation

@TamilarasanSF4853
Copy link
Copy Markdown
Contributor

@TamilarasanSF4853 TamilarasanSF4853 commented Nov 6, 2025

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

This PR includes a comprehensive set of test cases for the CollectionView control. The tests validate the FlowDirection Changes functionality in CollectionView, including properties such as: Header, Footer, HeaderTemplate, FooterTemplate, Grouping, EmptyView, EmptyViewTemplate, Scrolling, Selection.

Issues Identified:

Additional cases :

#32256

@dotnet-policy-service dotnet-policy-service bot added community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration labels Nov 6, 2025
@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@jsuarezruiz jsuarezruiz added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Nov 7, 2025
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@Ahamed-Ali Ahamed-Ali added the area-testing Unit tests, device tests label Nov 11, 2025
@TamilarasanSF4853 TamilarasanSF4853 marked this pull request as ready for review November 13, 2025 14:00
Copilot AI review requested due to automatic review settings November 13, 2025 14:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive FlowDirection test coverage for CollectionView, testing left-to-right (LTR) and right-to-left (RTL) flow direction behavior across multiple feature areas including selection, scrolling, grouping, headers, footers, and templates.

Key Changes:

  • Added FlowDirection testing for CollectionView across Selection, Scrolling, Grouping, and EmptyView scenarios
  • Added FlowDirection support to XAML pages by binding CollectionView.FlowDirection property
  • Added new AutomationId constants for FlowDirection options and header/footer templates
  • Includes snapshot files for EmptyView template visual verification

Reviewed Changes

Copilot reviewed 17 out of 107 changed files in this pull request and generated no comments.

Show a summary per file
File Description
CollectionView_SelectionFeatureTests.cs Adds 1000+ lines of FlowDirection tests with Selection modes, Headers, Footers, and Templates
CollectionView_ScrollingFeatureTests.cs Adds FlowDirection tests combined with scrolling behaviors (ItemSizing, ItemsUpdating)
CollectionView_GroupingFeatureTests.cs Adds FlowDirection tests for grouped CollectionView scenarios
CollectionView_DynamicChangesFeatureTests.cs Minor whitespace fix
CollectionViewSelectionPage.xaml Adds FlowDirection, Header, Footer, and Template bindings to CollectionView
CollectionViewGroupingPage.xaml Adds FlowDirection binding to CollectionView
EmptyView snapshot files Visual test baseline images for EmptyView with RTL/LTR flow directions

@sheiksyedm
Copy link
Copy Markdown
Contributor

/rebase

@github-actions github-actions bot force-pushed the collectionviewfeaturematrix-update-1 branch from 1f75eb0 to e923d6e Compare November 19, 2025 11:03
@sheiksyedm
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@TamilarasanSF4853 TamilarasanSF4853 deleted the collectionviewfeaturematrix-update-1 branch January 9, 2026 10:25
@TamilarasanSF4853 TamilarasanSF4853 restored the collectionviewfeaturematrix-update-1 branch January 9, 2026 10:26
@TamilarasanSF4853 TamilarasanSF4853 force-pushed the collectionviewfeaturematrix-update-1 branch from ee21797 to afb8c7b Compare January 9, 2026 11:17
@rmarinho
Copy link
Copy Markdown
Member

rmarinho commented Feb 18, 2026

🤖 AI Summary

📊 Expand Full Review
🔍 Pre-Flight — Context & Validation
📝 Review Sessionresaved android snaps · afb8c7b

PR: #32432 - [Testing] Additional Feature Matrix Test Cases for CollectionView
Author: TamilarasanSF4853 (Syncfusion partner)
Platforms Affected: Android, iOS, macOS, Windows (test coverage for all platforms)
Files Changed: 107 total — 0 source files, 13 HostApp XAML/CS files, 5 test CS files, 82 Android snapshot PNGs, 7 other XAML files

Issue Context

Primary issue linked: #32404 — "[iOS, MacOS] FlowDirection not working on EmptyView in CollectionView"

  • FlowDirection regression on Android from 9.0.80; exists on iOS/Mac since 9.0.0 with CV2
  • Status: Open / Backlog milestone

Secondary reference: #32256 — "Review the feature matrix test area for collection view as it relates to regression 32212 and 32225"

  • Task to add coverage for selection with header and RTL scenarios
  • Status: Open / Backlog milestone

PR Nature

This is a testing-only PR — adds ~342 UI test methods across 5 test files with no source code changes:

Test File Test Methods
CollectionView_EmptyViewFeatureTests.cs 127
CollectionView_SelectionFeatureTests.cs 86
CollectionView_ScrollingFeatureTests.cs 68
CollectionView_GroupingFeatureTests.cs 50
CollectionView_DynamicChangesFeatureTests.cs 11
Total 342

Also adds 82 Android screenshot snapshots and new HostApp FeatureMatrix pages.

Key Finding: Dead Code Issue

Tests for issue #32404 (EmptyView string FlowDirection) are wrapped with:

#if TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_IOS && TEST_FAILS_ON_WINDOWS

Due to how TEST_FAILS_ON_* flags work (each platform excludes only its OWN flag), the && condition is NEVER TRUE on any platform. These tests are effectively dead code that will never compile or run on any platform. The correct condition to disable tests on all platforms would need a different approach.

By contrast, the FlowDirection tests for Scrolling, Selection, and Grouping use VerifyScreenshot() with pre-captured Android snapshots and appear to be active tests.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #32432 Add feature matrix test coverage for CV FlowDirection ⏳ PENDING (Gate) 107 test files Testing-only PR, no fix

Discussion Summary

  • jsuarezruiz triggered /azp run on 2025-11-07 (pipeline run triggered)
  • sheiksyedm triggered /rebase and /azp run on 2025-11-19 (pipeline re-run after rebase)
  • No inline code review comments
  • No reviewer objections documented

🚦 Gate — Test Verification
📝 Review Sessionresaved android snaps · afb8c7b

Result: ⚠️ ADAPTED (Testing-only PR — no fix to validate)
Platform: android
Mode: Mode 1 (Verify Failure Only — no fix files in PR)

Gate Status

This PR is a testing-only PR — it adds 342 UI tests and 82 Android snapshots but contains zero source code changes. The standard Gate flow (tests fail without fix, pass with fix) does not apply.

Adapted Gate verification:

  • ✅ Tests compiled and ran on Android emulator
  • ✅ 43 CollectionView_ScrollingFeatureTests tests PASSED using the included snapshot baselines
  • The verify-tests-fail script reported "FAILED" because it detected CI pipeline YAML files as "fix files" (false positive — those are unrelated pipeline changes not part of this PR's intent)

Key Finding: Dead Code in Test Files

Several FlowDirection tests intended to track issue #32404 are wrapped with incorrect #if conditions:

#if TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_IOS && TEST_FAILS_ON_WINDOWS
// VerifyEmptyViewStringDisplaysCorrectly_WithLeftToRightFlowDirection (never compiles!)
// VerifyEmptyViewStringDisplaysCorrectly_WithRightToLeftFlowDirection (never compiles!)
#endif

This condition is never true on any platform because each platform only defines 3 of the 4 flags (never its own). The tests are dead code that will never run.

Same pattern found in:

  • CollectionView_GroupingFeatureTests.cs line 736
  • CollectionView_EmptyViewFeatureTests.cs line 1407

Gate Decision

⚠️ Gate PARTIALLY PASSED — Active tests run correctly with snapshots, but dead code issue prevents full pass.


🔧 Fix — Analysis & Comparison
📝 Review Sessionresaved android snaps · afb8c7b

Phase: Fix (try-fix exploration)
Status: ⏭️ SKIPPED — Testing-only PR

This PR contains only test files and no source code changes. Phase 3 (try-fix multi-model exploration) does not apply to testing-only PRs. There is no fix to generate alternatives for.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #32432 Add feature matrix test coverage for CollectionView ⚠️ PARTIAL 107 test files Testing-only PR, no fix

Exhausted: N/A (testing-only PR)
Selected Fix: N/A


📋 Report — Final Recommendation
📝 Review Sessionresaved android snaps · afb8c7b

⚠️ Final Recommendation: REQUEST CHANGES

Summary

PR #32432 adds 342 UI test methods and 82 Android screenshot snapshots for CollectionView feature matrix coverage (no source code changes). The tests cover FlowDirection (LTR/RTL), Scrolling, Selection, Grouping, and EmptyView scenarios.

However, there is a critical defect in the test files: 50 test methods across 2 files are wrapped in #if conditions that are never true on any platform, making them dead code that will never compile or run.

Root Cause of the Dead Code Issue

The TEST_FAILS_ON_* preprocessor symbols work as follows:

  • Each platform's test project defines flags for all other platforms (never itself)
  • TestCases.Android.Tests: defines TEST_FAILS_ON_IOS, TEST_FAILS_ON_CATALYST, TEST_FAILS_ON_WINDOWS (NOT TEST_FAILS_ON_ANDROID)
  • TestCases.iOS.Tests: defines TEST_FAILS_ON_ANDROID, TEST_FAILS_ON_CATALYST, TEST_FAILS_ON_WINDOWS (NOT TEST_FAILS_ON_IOS)
  • etc.

So #if TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_IOS && TEST_FAILS_ON_WINDOWS requires ALL FOUR flags to be defined simultaneously — which no platform ever does. The condition evaluates to FALSE on every platform.

Dead Code Locations

File Line Dead Methods Issue
CollectionView_EmptyViewFeatureTests.cs 186 2 methods VerifyEmptyViewStringDisplaysCorrectly_With{LTR,RTL}FlowDirection for issue #32404
CollectionView_EmptyViewFeatureTests.cs 1407 40 methods Large block of tests using TEST_FAILS_ON_IOS && TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_WINDOWS && TEST_FAILS_ON_CATALYST
CollectionView_GroupingFeatureTests.cs 736 8 methods Grouping FlowDirection tests with same condition
Total 50 dead methods Never compile, never run

Additional Issues

  1. Deprecated Frame control in EmptyViewOptionsPage.xaml.cs:

    Frame customView = new Frame { ... }  // deprecated

    Should use Border instead per MAUI guidelines.

  2. Missing required PR description note — PRs must include the testing artifacts note at the top of the description per contribution guidelines.

What's Good

  • ✅ Active FlowDirection tests (Scrolling, Selection, Grouping, Custom EmptyView) are properly written
  • ✅ Tests use appropriate Category(UITestCategories.CollectionView)
  • ✅ Screenshot baselines are included for Android tests
  • ✅ Tests use proper VerifyScreenshot() patterns with retryTimeout
  • ✅ Platform-specific guards (#if TEST_FAILS_ON_ANDROID for individual platforms) are correct in many places
  • ✅ 342 tests adds significant coverage for the CollectionView feature matrix

Required Changes

  1. Fix the dead code #if conditions (3 locations):

    • Replace #if TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_IOS && TEST_FAILS_ON_WINDOWS (and variants) with [Ignore("Fails on all platforms - see issue #32404")] attribute on each affected test method
    • Or remove the dead tests and track in the linked issues until the underlying bug is fixed
    • Do NOT use the && condition as it is never true
  2. Replace Frame with Border in EmptyViewOptionsPage.xaml.cs (2 occurrences)

  3. Add the required PR note at the top of the description:

    > [!NOTE]
    > Are you waiting for the changes in this PR to be merged?
    > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you!
    

📋 Expand PR Finalization Review
Title: ✅ Good

Current: [Testing] Additional Feature Matrix Test Cases for CollectionView

Description: ✅ Good

Description needs updates. See details below.

✨ Suggested PR Description

[!NOTE]
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

This PR extends the CollectionView Feature Matrix with FlowDirection (LTR/RTL) test coverage across all major feature areas.

HostApp changes (enabling FlowDirection in options pages):

  • CollectionViewViewModel.cs — Added FlowDirection property with INotifyPropertyChanged support
  • CollectionViewEmptyViewPage.xaml, CollectionViewGroupingPage.xaml, CollectionViewScrollPage.xaml, CollectionViewSelectionPage.xaml — Added FlowDirection="{Binding FlowDirection}" binding to the CollectionView control
  • EmptyViewOptionsPage.xaml/.cs, GroupingOptionsPage.xaml/.cs, ScrollBehaviorOptionsPage.xaml/.cs, SelectionOptionsPage.xaml/.cs — Added FlowDirection radio buttons (LeftToRight / RightToLeft) with OnFlowDirectionChanged handler
  • EmptyViewOptionsPage.xaml.cs — Removed HorizontalOptions = LayoutOptions.Center from EmptyView labels so RTL layout takes effect correctly

New test methods (added to existing feature matrix test classes):

Feature Area Tests Added Platform Guard
EmptyView (string) 2 LTR/RTL TEST_FAILS_ON_* all platforms (tracking issue #32404)
EmptyView (custom Grid, sized, template) 8 LTR/RTL None (runs all platforms)
Grouping (horizontal list/grid, vertical grid, DragDrop) 6 RTL Existing guards maintained
Scrolling (MeasureAll, MeasureFirst, KeepLastInView across layouts) 30 LTR/RTL Existing guards maintained
Selection (all layouts, Header/Footer variants) ~40 LTR/RTL TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_IOS && TEST_FAILS_ON_WINDOWS (issues #32225, #27946)

Additional fixes:

  • Corrected indentation in #if TEST_FAILS_ON_* comment blocks (DynamicChanges, EmptyView tests)
  • Fixed VerifyGroupHeaderAndFooterTemplate_* to wait for "Banana" instead of "Apple" (corrects first-visible item expectation after data ordering was made deterministic)
  • Reduced VerifyCanMixGroupsFalseWithCanReorderItems platform guard from TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_WINDOWS && TEST_FAILS_ON_IOS to TEST_FAILS_ON_WINDOWS only — Catalyst and iOS reorder issues were resolved

Issues Fixed

Related: #32404 (EmptyView string FlowDirection — tests added but guarded pending fix)
Related: #32256 (additional CollectionView feature matrix coverage)

Platforms Tested

  • Android
  • iOS
  • MacCatalyst
  • Windows
Code Review: ✅ Passed

Code Review — PR #32432

🟡 Suggestions

1. Two FlowDirection EmptyViewString tests are unreachable on all platforms

File: CollectionView_EmptyViewFeatureTests.cs

#if TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_IOS && TEST_FAILS_ON_WINDOWS
    [Test] public void VerifyEmptyViewStringDisplaysCorrectly_WithLeftToRightFlowDirection() { ... }
    [Test] public void VerifyEmptyViewStringDisplaysCorrectly_WithRightToLeftFlowDirection() { ... }
#endif

Problem: These two tests are conditionally excluded on every supported platform, making them dead code. The intent appears to be to track the failing behavior for issue #32404, but the tests will never compile or run anywhere.

Recommendation: Either remove these tests (and rely on the issue link to track the gap), or replace the && with || if the intent was "skip on any failing platform" (but currently fails on all four). If tracking intent is the goal, an Assert.Ignore or [IgnoreIf] approach at runtime would be clearer than a compile-time exclusion that makes the tests invisible.


2. FlowDirectionLTR/FlowDirectionRTL constants are duplicated across three test classes

Files:

  • CollectionView_GroupingFeatureTests.cs (lines ~19-20)
  • CollectionView_ScrollingFeatureTests.cs (lines ~25-26)
  • CollectionView_SelectionFeatureTests.cs (lines ~30-31)

Each file independently declares:

public const string FlowDirectionLTR = "FlowDirectionLeftToRight";
public const string FlowDirectionRTL = "FlowDirectionRightToLeft";

Problem: If the AutomationId values change in the HostApp XAML, all three files need updating independently.

Recommendation: Consider promoting these to a shared base class or a CollectionViewFeatureMatrixConstants static class used by all CollectionView feature matrix tests. This is low-risk but improves maintainability.


3. AppleBanana changes in GroupingFeatureTests need documentation

File: CollectionView_GroupingFeatureTests.cs

Several existing tests were changed from App.WaitForElement("Apple") to App.WaitForElement("Banana"), including:

  • VerifyGroupHeaderAndFooterTemplate_WithHorizontalListAndGroupedList
  • VerifyGroupHeaderAndFooterTemplate_WithHorizontalGridAndGroupedList
  • VerifyGroupHeaderAndFooterTemplate_WithVerticalGridAndGroupedList
  • VerifyIsGrouped_WithVerticalGridAndGroupedList
  • VerifyIsGrouped_With*AndObservableCollection (four variants)
  • VerifyIsGrouped_WithGroupHeaderAndFooterTemplateAndObservableCollection
  • VerifyCanMixGroupsFalseWithCanReorderItems

Problem: The PR description does not explain why the expected first-visible element changed from "Apple" to "Banana". If this was intentional (e.g., the CollectionView now renders items in a different visible order for grouped/horizontal layouts), it should be documented. If unintentional, it could mask a regression.

Recommendation: Add a comment explaining why the expected element changed. For example:

// "Banana" is the first visible item in a horizontal list with LTR layout
// because "Apple" scrolls off-screen to the left.
App.WaitForElement("Banana");

4. Reduction of VerifyCanMixGroupsFalseWithCanReorderItems platform guard should be documented

File: CollectionView_GroupingFeatureTests.cs

Before:

#if TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_WINDOWS && TEST_FAILS_ON_IOS
//CanMixGroups Set to False Still Allows Reordering Between Groups on Catalyst ...
//Test fails on CV2 ...
//.NET MAUI CollectionView does not reorder when grouped on windows ...

After:

#if TEST_FAILS_ON_WINDOWS //.NET MAUI CollectionView does not reorder when grouped on windows ...

Problem: The issues for Catalyst (#28530) and iOS (#28509) were silently removed from the guard without explanation. Either those bugs are now fixed (in which case, add a note), or the tests were incorrectly broadened (potential regression on Catalyst/iOS).

Recommendation: Add a comment referencing the resolution of issues #28530 and #28509, e.g.:

#if TEST_FAILS_ON_WINDOWS
// Issues #28530 (Catalyst) and #28509 (iOS/CV2) were resolved; guard narrowed to Windows only.
// .NET MAUI CollectionView does not reorder when grouped on windows Issue: https://github.com/dotnet/maui/issues/13027

✅ Looks Good

  • ViewModel change is clean: FlowDirection property follows the same INotifyPropertyChanged pattern as all other ViewModel properties.
  • XAML binding is correct: FlowDirection="{Binding FlowDirection}" on the CollectionView correctly routes to the ViewModel property.
  • HorizontalOptions removal is correct: Removing HorizontalOptions = LayoutOptions.Center from EmptyView labels is the right approach — RTL flow direction should control alignment, not a hardcoded horizontal option.
  • Options page handlers are consistent: All four feature areas (EmptyView, Grouping, Scrolling, Selection) follow the same RadioButton + OnFlowDirectionChanged pattern consistently.
  • [Category(UITestCategories.CollectionView)] applied correctly to all new test methods.
  • Screenshot-based tests are appropriate for FlowDirection visual validation — this is the right validation strategy for layout direction changes.
  • Trailing whitespace cleanup in VerifyKeepItemsInViewWithObservableList is a good housekeeping change.

@rmarinho rmarinho added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) labels Feb 18, 2026
@TamilarasanSF4853
Copy link
Copy Markdown
Contributor Author

TamilarasanSF4853 commented Feb 19, 2026

🤖 AI Summary

📊 Expand Full Review
🔍 Pre-Flight — Context & Validation

I’ve updated the changes based on the summary.

  • I have added the comment that explains the change to a different item.

@sheiksyedm sheiksyedm added the s/agent-suggestions-implemented Maintainer applies when PR author adopts agent's recommendation label Feb 20, 2026
@sheiksyedm sheiksyedm added this to the .NET 10 SR5 milestone Feb 21, 2026
@PureWeen PureWeen modified the milestones: .NET 10 SR5, .NET 10 SR6 Mar 3, 2026
@kubaflo kubaflo changed the base branch from main to inflight/current March 4, 2026 23:51
@kubaflo kubaflo merged commit cb7a553 into dotnet:inflight/current Mar 4, 2026
18 of 27 checks passed
PureWeen pushed a commit that referenced this pull request Mar 11, 2026
…2432)

> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This PR includes a comprehensive set of test cases for the
CollectionView control. The tests validate the FlowDirection Changes
functionality in CollectionView, including properties such as: Header,
Footer, HeaderTemplate, FooterTemplate, Grouping, EmptyView,
EmptyViewTemplate, Scrolling, Selection.

### Issues Identified:

- #32404

### Additional cases :
#32256
github-actions bot pushed a commit that referenced this pull request Mar 11, 2026
…2432)

> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This PR includes a comprehensive set of test cases for the
CollectionView control. The tests validate the FlowDirection Changes
functionality in CollectionView, including properties such as: Header,
Footer, HeaderTemplate, FooterTemplate, Grouping, EmptyView,
EmptyViewTemplate, Scrolling, Selection.

### Issues Identified:

- #32404

### Additional cases :
#32256
@PureWeen PureWeen mentioned this pull request Mar 17, 2026
PureWeen pushed a commit that referenced this pull request Mar 19, 2026
…2432)

> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This PR includes a comprehensive set of test cases for the
CollectionView control. The tests validate the FlowDirection Changes
functionality in CollectionView, including properties such as: Header,
Footer, HeaderTemplate, FooterTemplate, Grouping, EmptyView,
EmptyViewTemplate, Scrolling, Selection.

### Issues Identified:

- #32404

### Additional cases :
#32256
github-actions bot pushed a commit that referenced this pull request Mar 20, 2026
…2432)

> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This PR includes a comprehensive set of test cases for the
CollectionView control. The tests validate the FlowDirection Changes
functionality in CollectionView, including properties such as: Header,
Footer, HeaderTemplate, FooterTemplate, Grouping, EmptyView,
EmptyViewTemplate, Scrolling, Selection.

### Issues Identified:

- #32404

### Additional cases :
#32256
github-actions bot pushed a commit that referenced this pull request Mar 22, 2026
…2432)

> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This PR includes a comprehensive set of test cases for the
CollectionView control. The tests validate the FlowDirection Changes
functionality in CollectionView, including properties such as: Header,
Footer, HeaderTemplate, FooterTemplate, Grouping, EmptyView,
EmptyViewTemplate, Scrolling, Selection.

### Issues Identified:

- #32404

### Additional cases :
#32256
PureWeen added a commit that referenced this pull request Mar 24, 2026
## What's Coming

.NET MAUI inflight/candidate introduces significant improvements across
all platforms with focus on quality, performance, and developer
experience. This release includes 66 commits with various improvements,
bug fixes, and enhancements.


## Activityindicator
- [Android] Implemented material3 support for ActivityIndicator by
@Dhivya-SF4094 in #33481
  <details>
  <summary>🔧 Fixes</summary>

- [Implement material3 support for
ActivityIndicator](#33479)
  </details>

- [iOS] Fix: ActivityIndicator IsRunning ignores IsVisible when set to
true by @bhavanesh2001 in #28983
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] [ActivityIndicator] `IsRunning` ignores `IsVisible` when set to
`true`](#28968)
  </details>

## Button
- [iOS] Button RTL text and image overlap - fix by @kubaflo in
#29041

## Checkbox
- [iOS/MacCatalyst] Fix CheckBox foreground color not resetting when set
to null by @Ahamed-Ali in #34284
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] Color of the checkBox control is not properly worked on dynamic
scenarios](#34278)
  </details>

## CollectionView
- [iOS] Fix: CollectionView does not clear selection when SelectedItem
is set to null by @Tamilarasan-Paranthaman in
#30420
  <details>
  <summary>🔧 Fixes</summary>

- [CollectionView not being able to remove selected item highlight on
iOS](#30363)
- [[MAUI] Select items traces are
preserved](#26187)
  </details>

- [iOS] CV2 ItemsLayout update by @kubaflo in
#28675
  <details>
  <summary>🔧 Fixes</summary>

- [CollectionView CollectionViewHandler2 doesnt change ItemsLayout on
DataTrigger](#28656)
- [iOS CollectionView doesn't respect a change to ItemsLayout when using
Items2.CollectionViewHandler2](#31259)
  </details>

- [iOS][CV2] Fix CollectionView renders large empty space at bottom of
view by @devanathan-vaithiyanathan in
#31215
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] [MacCatalyst] CollectionView renders large empty space at
bottom of view](#17799)
- [[iOS/Mac] CollectionView2 EmptyView takes up large horizontal space
even when the content is
small](#33201)
  </details>

- [iOS] Fixed issue where group Header/Footer template was set to all
items when IsGrouped was true for an ObservableCollection by
@Tamilarasan-Paranthaman in #29144
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] Group Header/Footer Repeated for All Items When IsGrouped is
True for ObservableCollection in
CollectionView](#29141)
  </details>

- [Android] Fix CollectionView selection crash with HeaderTemplate by
@NirmalKumarYuvaraj in #34275
  <details>
  <summary>🔧 Fixes</summary>

- [[Bug] [Android] System.ArgumentOutOfRangeException: Index was out of
range. Must be non-negative and less than the size of the collection.
Parameter name: index](#34247)
  </details>

## DateTimePicker
- [iOS] Fix TimePicker AM/PM frequently changes when the app is closed
and reopened by @devanathan-vaithiyanathan in
#31066
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] TimePicker AM/PM frequently changes when the app is closed and
reopened](#30837)
- [Maui 10 iOS TimePicker Strange Characters in place of
AM/PM](#33722)
  </details>

- Android TimePicker ignores 24 hour system setting when using Format
Property - fix by @kubaflo in #28797
  <details>
  <summary>🔧 Fixes</summary>

- [Android TimePicker ignores 24 hour system setting when using Format
Property](#28784)
  </details>

## Drawing
- [iOS, Mac, Windows] GraphicsView: Fix Background/BackgroundColor not
updating by @NirmalKumarYuvaraj in
#31254
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS, Mac, Windows] GraphicsView does not change the
Background/BackgroundColor](#31239)
  </details>

- [iOS] GraphicsView DrawString - fix by @kubaflo in
#26304
  <details>
  <summary>🔧 Fixes</summary>

- [DrawString not rendering in
iOS.](#24450)
- [GraphicsView DrawString not rendering in
iOS](#8486)
- [DrawString doesn't work on
maccatalyst](#4993)
  </details>

- [Android] - Fix Shadow Rendering For Transparent Fill, Stroke (Lines),
and Text on Shapes by @prakashKannanSf3972 in
#29528
  <details>
  <summary>🔧 Fixes</summary>

- [Ellipse Transparency Not Rendered When Drawing Arc Inside the Ellipse
Using GraphicsView on
Android](#29394)
  </details>

- Revert "[iOS, Mac, Windows] GraphicsView: Fix
Background/BackgroundColor not updating (#31254)" by @Ahamed-Ali via
@Copilot in #34508

## Entry
- [iOS 26] Fix Entry MaxLength not enforced due to new multi-range
delegate by @kubaflo in #32045
  <details>
  <summary>🔧 Fixes</summary>

- [iOS 26 - The MaxLength property value is not respected on an Entry
control.](#32016)
- [.NET MAUI Entry Maximum Length not working on iOS and
macOS](#33316)
  </details>

- [iOS] Fixed Entry with IsPassword toggling loses previously entered
text by @SubhikshaSf4851 in #30572
  <details>
  <summary>🔧 Fixes</summary>

- [Entry with IsPassword toggling loses previously entered text on iOS
when IsPassword is
re-enabled](#30085)
  </details>

## Essentials
- Fix for FilePicker PickMultipleAsync nullable reference type by
@SuthiYuvaraj in #33163
  <details>
  <summary>🔧 Fixes</summary>

- [FilePicker PickMultipleAsync nullable reference
type](#33114)
  </details>

- Replace deprecated NetworkReachability with NWPathMonitor on iOS/macOS
by @jfversluis via @Copilot in #32354
  <details>
  <summary>🔧 Fixes</summary>

- [NetworkReachability is obsolete on iOS/maccatalyst
17.4+](#32312)
- [Use NWPathMonitor on iOS for Essentials
Connectivity](#2574)
  </details>

## Essentials Connectivity
- Update Android Connectivity implementation to use modern APIs by
@jfversluis via @Copilot in #30348
  <details>
  <summary>🔧 Fixes</summary>

- [Update the Android Connectivity implementation to user modern
APIs](#30347)
  </details>

## Flyout
- [iOS] Fixed Flyout icon not updating when root page changes using
InsertPageBefore by @Vignesh-SF3580 in
#29924
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] Flyout icon not replaced by back button when root page is
changed using
InsertPageBefore](#29921)
  </details>

## Flyoutpage
- [iOS] Flyout Items Not Displayed in RightToLeft FlowDirection in
Landscape - fix by @kubaflo in #26762
  <details>
  <summary>🔧 Fixes</summary>

- [Flyout Items Not Displayed in RightToLeft FlowDirection on iOS in
Landscape Orientation and Hamburger Icon Positioned
Incorrectly](#26726)
  </details>

## Image
- [Android] Implemented Material3 support for Image by @Dhivya-SF4094 in
#33661
  <details>
  <summary>🔧 Fixes</summary>

- [Implement Material3 support for
Image](#33660)
  </details>

## Keyboard
- [iOS] Fix gap at top of view after rotating device while Entry
keyboard is visible by @praveenkumarkarunanithi in
#34328
  <details>
  <summary>🔧 Fixes</summary>

- [Focusing and entering texts on entry control causes a gap at the top
after rotating simulator.](#33407)
  </details>

## Label
- [Android] Support for images inside HTML label by @kubaflo in
#21679
  <details>
  <summary>🔧 Fixes</summary>

- [Label with HTML TextType does not display images on
Android](#21044)
  </details>

- [fix] ContentLabel Moved to a nested class to prevent CS0122 in
external source generators by @SubhikshaSf4851 in
#34514
  <details>
  <summary>🔧 Fixes</summary>

- [[MAUI] Building Maui App with sample content results CS0122
errors.](#34512)
  </details>

## Layout
- Optimize ordering of children in Flex layout by @symbiogenesis in
#21961

- [Android] Fix control size properties not available during Loaded
event by @Vignesh-SF3580 in #31590
  <details>
  <summary>🔧 Fixes</summary>

- [CollectionView on Android does not provide height, width, logical
children once loaded, works fine on
Windows](#14364)
- [Control's Loaded event invokes before calling its measure override
method.](#14160)
  </details>

## Mediapicker
- [iOS/Android] MediaPicker: Fix image orientation when RotateImage=true
by @michalpobuta in #33892
  <details>
  <summary>🔧 Fixes</summary>

- [MediaPicker.PickPhotosAsync does not preserve image
orientation](#32650)
  </details>

## Modal
- [Windows] Fix modal page keyboard focus not shifting to newly opened
modal by @jfversluis in #34212
  <details>
  <summary>🔧 Fixes</summary>

- [Keyboard focus does not shift to a newly opened modal page: Pressing
enter clicks the button on the page beneath the modal
page](#22938)
  </details>

## Navigation
- [iOS26] Apply view margins in title view by @kubaflo in
#32205
  <details>
  <summary>🔧 Fixes</summary>

- [NavigationPage TitleView iOS
26](#32200)
  </details>

- [iOS] System.NullReferenceException at
NavigationRenderer.SetStatusBarStyle() by @kubaflo in
#29564
  <details>
  <summary>🔧 Fixes</summary>

- [System.NullReferenceException at
NavigationRenderer.SetStatusBarStyle()](#29535)
  </details>

- [iOS 26] Fix back button color not applied for NavigationPage by
@Shalini-Ashokan in #34326
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] Color not applied to the Back button text or image on iOS
26](#33966)
  </details>

## Picker
- Fix Picker layout on Mac Catalyst 26+ by @kubaflo in
#33146
  <details>
  <summary>🔧 Fixes</summary>

- [[MacOS 26] Text on picker options are not centered on macOS
26.1](#33229)
  </details>

## Progressbar
- [Android] Implemented Material3 support for ProgressBar by
@SyedAbdulAzeemSF4852 in #33926
  <details>
  <summary>🔧 Fixes</summary>

- [Implement Material3 support for
Progressbar](#33925)
  </details>

## RadioButton
- [iOS, Mac] Fix for RadioButton TextColor for plain Content not working
by @HarishwaranVijayakumar in #31940
  <details>
  <summary>🔧 Fixes</summary>

- [RadioButton: TextColor for plain Content not working on
iOS](#18011)
  </details>

- [All Platforms] Fix RadioButton warning when ControlTemplate is set
with View content by @kubaflo in
#33839
  <details>
  <summary>🔧 Fixes</summary>

- [Seeking clarification on RadioButton + ControlTemplate + Content
documentation](#33829)
  </details>

- Visual state change for disabled RadioButton by @kubaflo in
#23471
  <details>
  <summary>🔧 Fixes</summary>

- [RadioButton disabled UI issue -
iOS](#18668)
  </details>

## SafeArea
- [Android] Fix for TabbedPage BottomNavigation BarBackgroundColor not
extending to system navigation bar by @praveenkumarkarunanithi in
#33428
  <details>
  <summary>🔧 Fixes</summary>

- [[Android] TabbedPage BottomNavigation BarBackgroundColor does not
extend to system navigation bar area in Edge-to-Edge
mode](#33344)
  </details>

## ScrollView
- [Android] ScrollView: Fix HorizontalScrollBarVisibility not updating
immediately at runtime by @SubhikshaSf4851 in
#33528
  <details>
  <summary>🔧 Fixes</summary>

- [Runtime Scrollbar visibility not updating correctly on Android and
macOS platforms.](#33400)
  </details>

- Fixed crash when calling ItemsView.ScrollTo on unloaded CollectionView
by @kubaflo in #25444
  <details>
  <summary>🔧 Fixes</summary>

- [App crashes when calling ItemsView.ScrollTo on unloaded
CollectionView](#23014)
  </details>

## Shell
- [Shell] Update logic for iOS large title display in ShellItemRenderer
by @kubaflo in #33246

- [iOS][Shell] Fix navigation lifecycle and back button for More tab (>5
tabs) by @kubaflo in #27932
  <details>
  <summary>🔧 Fixes</summary>

- [OnAppearing and OnNavigatedTo does not work when using extended
Tabbar (tabbar with more than 5 tabs) on
IOS.](#27799)
- [Shell.BackButtonBehavior does not work when using extended Tabbar
(tabbar with more than 5 tabs)on
IOS.](#27800)
- [Shell TabBar More button causes ViewModel command binding
disconnection on back
navigation](#30862)
- [Content page onappearing not firing if tabs are on the more tab on
IOS](#31166)
  </details>

- [iOS 26] Fix tab bar ghosting when navigating from modal to tabbed
Shell content by @SubhikshaSf4851 in
#34254
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] Tab bar ghosting issue on iOS 26 (liquid
glass)](#34143)
  </details>

- Fix for Shell tab visibility not updating when navigating back
multiple pages by @BagavathiPerumal in
#34403
  <details>
  <summary>🔧 Fixes</summary>

- [Changing Shell Tab Visibility when navigating back multiple pages
ignores Shell Tab
Visibility](#33351)
  </details>

- [iOS/Mac] Fixed OnBackButtonPressed not firing for Shell Navigation
Bar Button by @Dhivya-SF4094 in
#34401
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] OnBackButtonPressed not firing for Shell Navigation Bar
button](#34190)
  </details>

## Slider
- [iOS] Fix for Slider ThumbImageSource is not centered properly on iOS
26 by @HarishwaranVijayakumar in
#34019
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS 26] Slider ThumbImageSource is not centered
properly](#33967)
  </details>

- [Android] Fix improper rendering of ThumbimageSource in Slider by
@NirmalKumarYuvaraj in #34064
  <details>
  <summary>🔧 Fixes</summary>

- [[Slider] MAUI Slider thumb image is big on
android](#13258)
  </details>

## Stepper
- [iOS] Fix Stepper layout overlap in landscape on iOS 26 by
@Vignesh-SF3580 in #34325
  <details>
  <summary>🔧 Fixes</summary>

- [[.NET10] D10 - Customize cursor position - Rotating simulator makes
the button and label
overlap](#34273)
  </details>

## SwipeView
- [iOS] SwipeView: Honor FontImageSource.Color in SwipeItem icon by
@kubaflo in #27389
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] SwipeView: SwipeItem.IconImageSource.FontImageSource color
value not honored](#27377)
  </details>

## Switch
- [Android] Fix Switch thumb shadow missing when ThumbColor is set by
@Shalini-Ashokan in #33960
  <details>
  <summary>🔧 Fixes</summary>

- [Android Switch Control Thumb
Shadow](#19676)
  </details>

## Toolbar
- [iOS/Mac Catalyst 26] Fix Shell.ForegroundColor not applied to
ToolbarItems by @SyedAbdulAzeemSF4852 in
#34085
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS26] Shell.ForegroundColor is not applied to
ToolbarItems](#34083)
  </details>

- [Android] VoiceOver on Toolbar Item by @kubaflo in
#29596
  <details>
  <summary>🔧 Fixes</summary>

- [VoiceOver on Toolbar
Item](#29573)
- [SemanticProperties do not work on
ToolbarItems](#23623)
  </details>


<details>
<summary>🧪 Testing (11)</summary>

- [Testing] Additional Feature Matrix Test Cases for CollectionView by
@TamilarasanSF4853 in #32432
- [Testing] Feature Matrix UITest Cases for VisualStateManager by
@LogishaSelvarajSF4525 in #34146
- [Testing] Feature Matrix UITest Cases for Clip by @TamilarasanSF4853
in #34121
- [Testing] Feature matrix UITest Cases for Map Control by
@HarishKumarSF4517 in #31656
- [Testing] Feature matrix UITest Cases for Visual Transform Control by
@HarishKumarSF4517 in #32799
- [Testing] Feature Matrix UITest Cases for Shell Pages by
@NafeelaNazhir in #33945
- [Testing] Feature Matrix UITest Cases for Triggers by
@HarishKumarSF4517 in #34152
- [Testing] Refactoring Feature Matrix UITest Cases for CheckBox Control
by @LogishaSelvarajSF4525 in #34283
- Resolve UI test Build Sample failures - Candidate March 16 by
@Ahamed-Ali in #34442
- Fix the failures in the Candidate branch- March 16 by @Ahamed-Ali in
#34453
  <details>
  <summary>🔧 Fixes</summary>

  - [March 16th, Candidate](#34437)
  </details>
- Fixed the iOS 18.5 Candidate failures (March 16,2026) by @Ahamed-Ali
in #34593
  <details>
  <summary>🔧 Fixes</summary>

  - [March 16th, Candidate](#34437)
  </details>

</details>

<details>
<summary>📦 Other (2)</summary>

- Fixed candidate test failures caused by PR #33428. by @Ahamed-Ali in
#34515
  <details>
  <summary>🔧 Fixes</summary>

- [[.NET10] On Android, there's a big space at the top for I, M and N2 &
N3](#34509)
  </details>
- Revert "[iOS] Button RTL text and image overlap - fix (#29041)" in
b0497af

</details>

<details>
<summary>📝 Issue References</summary>

Fixes #2574, Fixes #4993, Fixes #8486, Fixes #13258, Fixes #14160, Fixes
#14364, Fixes #17799, Fixes #18011, Fixes #18668, Fixes #19676, Fixes
#21044, Fixes #22938, Fixes #23014, Fixes #23623, Fixes #24450, Fixes
#26187, Fixes #26726, Fixes #27377, Fixes #27799, Fixes #27800, Fixes
#28656, Fixes #28784, Fixes #28968, Fixes #29141, Fixes #29394, Fixes
#29535, Fixes #29573, Fixes #29921, Fixes #30085, Fixes #30347, Fixes
#30363, Fixes #30837, Fixes #30862, Fixes #31166, Fixes #31239, Fixes
#31259, Fixes #32016, Fixes #32200, Fixes #32312, Fixes #32650, Fixes
#33114, Fixes #33201, Fixes #33229, Fixes #33316, Fixes #33344, Fixes
#33351, Fixes #33400, Fixes #33407, Fixes #33479, Fixes #33660, Fixes
#33722, Fixes #33829, Fixes #33925, Fixes #33966, Fixes #33967, Fixes
#34083, Fixes #34143, Fixes #34190, Fixes #34247, Fixes #34273, Fixes
#34278, Fixes #34437, Fixes #34509, Fixes #34512

</details>

**Full Changelog**:
main...inflight/candidate
KarthikRajaKalaimani pushed a commit to KarthikRajaKalaimani/maui that referenced this pull request Mar 30, 2026
…tnet#32432)

> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This PR includes a comprehensive set of test cases for the
CollectionView control. The tests validate the FlowDirection Changes
functionality in CollectionView, including properties such as: Header,
Footer, HeaderTemplate, FooterTemplate, Grouping, EmptyView,
EmptyViewTemplate, Scrolling, Selection.

### Issues Identified:

- dotnet#32404

### Additional cases :
dotnet#32256
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-collectionview CollectionView, CarouselView, IndicatorView area-testing Unit tests, device tests community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) s/agent-suggestions-implemented Maintainer applies when PR author adopts agent's recommendation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants