Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Carousel page rendering complex layouts is very slow

$
0
0

I have a carousel page that has up to 12 child pages in it. Each child page is essentially a product page which shows a couple of pictures and some text about the product laid out nicely. I'm using grids to layout the page (made in xaml) with some inner grids or inner stack layouts as well where needed.

As the carousel loads all the pages at one its is incredibly slow, its taking about 4 seconds to load on the new IPad mini. The cause of this seems to be solely down to processing the layout. if i remove all the grids and stick the same images and text into one stack layout, then carousel loads in about 0.3 seconds.

It also seems to cause memory problems as all the pages are in loaded at the same time and i have more than one carousel page, this causes the app to crash.
I cannot see how to receive memory warnings in Xamarin forms or do global exception handling and cannot seem to speed up the carousel without abandoning the design of the product page.

Are there known issues relating to slow layout rendering when there are several grids in carousel pages?
Also are there plans to change the carousel to either not load all the pages at once, or maybe apply some sort of late binding?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>