Skip to content

Header/Footer Template and View Synchronization Issue in .NET MAUI CollectionView (CV2) #28504

@NafeelaNazhir

Description

@NafeelaNazhir

Description

There is an unintended synchronization between the HeaderTemplate/FooterTemplate and Header/Footer views in .NET MAUI CollectionView(CV2). When setting a header or footer template, the corresponding header/footer view is also updated, and vice versa. These properties should function independently.

Screen.Recording.2025-03-19.at.5.15.08.PM.mov
Screen.Recording.2025-03-19.at.5.12.29.PM.mov

Steps to Reproduce

  1. Launch the Application on iOS and Catalyst GroupingSample.zip

  2. Select HeaderTemplate for the CollectionView.

  3. Then Select none for HeaderTemplate (set to null).

  4. Then, select Header View and observe that the header view is not updated—it only displays the HeaderTemplate. The same issue occurs with the Footer.

  5. Re-Run the application.

  6. Now , first select the Header View for the CollectionView.

  7. Then select none for Header (set to null).

  8. Then, select HeaderTemplate and observe that the header template is not updated correctly—it only displays the Header View. This issue also occurs with the Footer.

Expected Behavior:

  • The HeaderTemplate and Header view should remain independent.

  • The FooterTemplate and Footer view should remain independent.

  • Changing one property should not automatically update the other.

Actual Behavior:

Header/Footer properties are updated when selecting HeaderTemplate/Footer Template, and Header/Footer Template are updated when selecting Header/Footer view causing unintended behavior.

Link to public reproduction project repository

No response

Version with bug

9.0.50 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions