I've been pulling my hair out trying to get any kind of performance out of Collection View...bottom line I think using the data template and databinding is just too slow for what im trying to do. (the list has about 100 row items, never mind an infinite scrolling pattern).
Is there a way to build out the Collection View Items and add them to the Collection View manually in C# without databinding?
Sounds like a horribly tedious idea, but I've already attempted to pair down the Views and remove nested containers, and even remove the number of items being databound for each item. I've removed any converters, and really anything that could possible add to the overhead. Additionally, I've hard coded text labels in for every element that would normally be databound. It simply just can't handle anything that is more than a couple of simple visual elements. Once the count of visual elements increases to accommodate the design im trying to implement it tanks.
In the output window, when I navigate to the screen in question, it spends seconds (30-40) mostly just GCing. Rendering the UI just brings Maui to its knees. If I navigate away and come back (after i give it time to catch up), it usually just crashes the app.
Additionally, I've specified the data type on the data template, gave an explicit height on each item, and told the collection view to size based on the first item. Nothing works. Its just unusable in its current form.