dotnet / maui-samples

Samples for .NET Multi-Platform App UI (.NET MAUI)
https://dot.net/maui
MIT License
3.09k stars 1.28k forks source link

All of the CollectionView samples need to be updated so the CV is inside a Grid not a StackLayout #467

Open PureWeen opened 4 months ago

PureWeen commented 4 months ago

https://github.com/dotnet/maui-samples/blob/main/8.0/UserInterface/Views/CollectionViewDemos/CollectionViewDemos/Views/Swipe/VerticalListSwipeContextItemsPage.xaml#L7

StackLayouts will cause the CollectionView to take up infinite space. What this means is that the CV won't be virtualized at all. if a CV has 100 items it'll render 100 items which is really bad for performance