dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.04k stars 1.73k forks source link

Various issues with CarouselView and Resources #14649

Open williambuchanan2 opened 1 year ago

williambuchanan2 commented 1 year ago

Description

I have noticed that CarouselView is very glitchy.

I have included a sample repo below. It has the option to choose a range of 'themes' from a pick list which loads different images in the carousel. However, even without this theme selection there seems to be a lot of glitches. I'm not sure if this is related to the carousel itself or the loading of resources.

  1. Images don't load properly - often just blank, but sometimes the wrong images appear (i.e. images from other themes or random images in the project).
  2. When looping, eventually the carousel loses it altogether (i.e. loop 3 or 4 times in one direction). You end up with no images and the indicator just shows random dots.

Here is a gif which shows one of the problems: https://j.gifs.com/Og0wxY.gif

Note though that there are several problems - not just this one.

Steps to Reproduce

Open the solution below and click the 'Carousel or Resource Problem' button. Play around with the carousel (scroll left, right, loop a few times, etc). Sometimes the issue is there instantly, but other times you need to play with it a while.

Link to public reproduction project repository

https://github.com/williambuchanan2/MauiIssues.App

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

Android 11 - 13, iOS 16

Did you find any workaround?

no

Relevant log output

No response

williambuchanan2 commented 1 year ago

As I go through the day trying to get something working with this I just keep running into more problems. At one stage I have the first item showing for all 4 left swipes (i.e. I swipe left and the image and label stay the same, but the indicator moves). After 4 swipes I eventually see the right images and labels.

I then discover that turning Loop to True fixes this problem (and then turning it back to false brings the problem back). However I can't run it with Loop enabled because this brings it's own issues.

It just feels like there are several fundamental bugs in this control that need looking at.

XamlTest commented 1 year ago

Verified this on Visual Studio Enterprise 17.7.0 Preview 2.0. Repro on Android 13.0-API33 and iOS 16.4 with below Project: MauiIssues.App.zip

SliemBeji-FBC commented 11 months ago

When will it finally be fixed?

pauldiston commented 3 months ago

I am looking at using the CarouselView however it seems to have a mind of its own, having called the ScrollTo method, it just jumps continuously, toggling the visibility (to create an overlay over other controls) also causes the scroll to jump randomly.

This is on version 8.0.61

Cast324 commented 2 months ago

Also seeing the same issues mentioned here. Did anyone come up with a work around?

reid-kirkpatrick commented 2 months ago

Any idea when the issue with missing images will be fixed?!

ardentra commented 2 months ago

+1 this is a blocker for us as we are just migrating from Xamarin. please fix 🙏