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

Any news on Carousel Pages and Lazy Loading?

$
0
0

Hey all,

I've been trying to implement a carousel page with 100s of images, which I have working (to a degree).

I've found a few threads on the topic where @CraigDunn mentions that they are working on virtualization / Lazy-loading of the carousel page:
https://forums.xamarin.com/discussion/22672/carouselpage-and-observablecollection
https://forums.xamarin.com/discussion/18413/carouselpage-lazy-loading-possible-bug-with-image-imagesource

What I have done to implement this currently is to load the carousel with the list of content pages without any layout / images. Then I set the current page of the carousel (they can enter at different points by scrolling through a list). Finally I set the content equal to the layouts (which contain the image and some buttons) for the current page, the previous page, and the next page. When the user scrolls right, it sets the content to null for the left page and sets the content equal to the layout for the new page to the right.

While this approach works, it causes the swipe animation to lag slightly when it loads / unloads.

I am not sure how to fix that, but I was theorizing that I could wait until the animation is finished and then load the next page. Not sure how exactly I would do that, but it seems like a possible answer.

Regardless, if there is a way to do lazy loading that the Xamarin team has implemented, I would rather do it that way.

EDIT: Bonus Question - Is there a place for me to go and see what features are being worked on / requested?


Viewing all articles
Browse latest Browse all 75885

Trending Articles