-
Notifications
You must be signed in to change notification settings - Fork 1.9k
CollectionView Header and Footer not shown in Windows #21224
Description
Description
In Windows, when trying to add any content inside a Header/Footer to a CollectionView, it is not being displayed.
This was previously reported in Issue 14557. That is now closed, fixed by Fix CollectionView not displaying header or footers. However, I still get the same problem. So this issue is a deliberate duplicate of closed Issue 14557, which I cannot reopen. Below, I've reference the same public reproduction repository as was provided for Issue 14557.
Steps to Reproduce
Create new project
Add CollectionView with a ItemsSource
Add a Header/Footer to the CollectionView
Link to public reproduction project repository
https://github.com/sesitosvdx/CollectionViewHeaderFooterWindowsBug
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
windows10.0.22621.3233
Did you find any workaround?
Include in Platforms\Windows\App.xaml.cs constructor:
CollectionViewHandler.Mapper.AppendToMapping("HeaderAndFooterFix", (_, collectionView) => { collectionView.AddLogicalChild(collectionView.Header as Element); collectionView.AddLogicalChild(collectionView.Footer as Element); });
Relevant log output
No response