Open Alex-Dobrynin opened 6 months ago
Related to https://github.com/dotnet/maui/issues/11782 - unfortunately this has been requested since 2019
Duplicate of #11782
This would be very useful, I am facing this at the moment, as well.
This needs to be implemented ASAP.
you can emulate this with ScrollView + StackLayout using BindableLayout attached properties - but it does not perform anywhere near as well.
it's annoying becuase I have some large buttons that overlay my content area, which means that without the ability to "scroll past" the end by ~30dp there is some information on the last item that gets covered up.
The other solution is to wrap all my data items in some container that gets told about it's index in the collection to add the final padding in - which is pretty ugly.
Would be super useful. Sharpnado Collection View has this implemented (a CollectionPadding
property), if you can live with fixed item sizes.
Description
Generally everything in the subject. I tried to override the default implementation of CollectionView handler. On Android this is not an issue, but with iOS cannot set UICollectionVIew.ContentInset = Padding, because ContentInset being reset by the internal implementation of CollectionView handler. So this is more architectural change of the handler and related things.
Public API Changes
Intended Use-Case
Padding for CollectionView can be very helpful, especially if you have GridLayout and you need space around edge views but the scrollbar stick to the edge. Doing it with margins of each item is not the proper way to achieve this, even more, in this case you need to calculate margins only for those edge views.