roubachof / Sharpnado.CollectionView

A performant list view supporting: grid, horizontal and vertical layout, drag and drop, and reveal animations.
The Unlicense
245 stars 30 forks source link

Grouping in Grid HorizontalListView #61

Open MAST1999 opened 2 years ago

MAST1999 commented 2 years ago

Is your feature request related to a problem? Please describe. I'm trying to use this CollectionView to get a grid with headers and the headers have to fill a whole row and the items in the group can have 4 or more columns.

Describe the solution you'd like It would be nice to have a SizedDataTemplate with a FullWidth property that will take the whole row. Maybe the headers will have separate SizedDataTemplate so people can have different kinds as well but I think that's overkill. I'm willing to try and help to implement it as well but I'm pretty new to Xamarin and C# so if you could give me a few tips I can try.

Describe alternatives you've considered I tried to change the code in vertical to allow hidden cells and added one header with custom width and it was a mess TBH And it would always end up dropping frames when we reached a Header.

Additional context I managed to make it look like this but the performance was awful 😁. image

unamed000 commented 2 years ago

I think this feature is very useful since this is a very common behavior, I'm implementing a photo gallery exactly like this one but there is no way to achieve this at the moment by using this wonderful control.

mjsb212 commented 1 year ago

Yes! I also wish this was possible to group things into columns with headers that span all the columns -- but im thinking because of virtualization and recycleview there will be performance problems as stated above. Anyone know if this is even possible? The MAUI current collectionview in .net 8 supports this, but I ran into performance problems with larger lists.