Xamarin.forms: [Feature] Able to toggle sticky group headers in CollectionView

Created on 25 Nov 2019  Â·  6Comments  Â·  Source: xamarin/Xamarin.Forms

Summary

We are using a grouped CollectionView and would like to disable sticky group headers.
A similar idea was previously discussed in the CollectionView spec.

API Changes

Add a new property UseStickyGroupHeaders (or similar) to CollectionView.
Default value should be false.

public static readonly BindableProperty UseStickyGroupHeadersProperty;
public bool UseStickyGroupHeaders { get; set; }

Intended Use Case

Currently, the default platform behaviour occurs which results in an inconsistent experience between the platforms. For example, by default group headers are sticky on UWP but _not_ on iOS and Android.

collectionview high impact proposal-open enhancement âž•

Most helpful comment

Created a proof of concept implementation here: https://github.com/xamcat/Scratch/tree/master/FormsStickyHeaders

Feel free to extend it directly into forms!

All 6 comments

According to issue 3172, CollectionView should have a property named IsHeaderSticky. However, I can't find it - @cabal95 also stated that in issue 3172.

Is this feature still planned for CollectionView?

Bump - I'd like the option to have sticky group headers on android / iOS

Created a proof of concept implementation here: https://github.com/xamcat/Scratch/tree/master/FormsStickyHeaders

Feel free to extend it directly into forms!

omg I would reaaaaaaally like this to be added :) so big +1

+1 this looks great ..

That would be great!!!

Was this page helpful?
0 / 5 - 0 ratings