Open
Description
Description
On Android, when IsGrouped is set to True and the ItemsSource is set to ObservableCollection. The GroupHeaderTemplate and GroupFooterTemplate are incorrectly applied to every individual item in the collection. For example, if the ObservableCollection contains 4 items, the group header and footer are displayed 4 times, once for each item instead of showing list.
Screen.Recording.2025-04-07.at.4.21.54.PM.mov
Steps to Reproduce
- Run the Application IsGroupedSample 2.zip
- Select ItemSource= Observablecollection or List , IsGrouped= true, Select GroupHeaderTemplate and GroupFooterTemplate .
- Observe the behavior of the CollectionView.
Expected Behaviour:
- The GroupHeaderTemplate and GroupFooterTemplate should only be applied when the ItemsSource is a grouped collection.
- When using a flat ObservableCollection, only the individual items should be displayed, without any group headers or footers.
- The GroupHeaderTemplate and GroupFooterTemplate should not be applied to individual items in the ObservableCollection.
Actual Behaviour:
- The GroupHeaderTemplate and GroupFooterTemplate are incorrectly applied to each item in the flat ObservableCollection, resulting in multiple headers and footers—one for every item—even though the data is not grouped.
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
Android
Affected platform versions
No response
Did you find any workaround?
No response