-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
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
-
Launch the Application on iOS and Catalyst GroupingSample.zip
-
Select HeaderTemplate for the CollectionView.
-
Then Select none for HeaderTemplate (set to null).
-
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.
-
Re-Run the application.
-
Now , first select the Header View for the CollectionView.
-
Then select none for Header (set to null).
-
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