xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.64k stars 1.88k forks source link

[Bug] Carouselview only showing first 5 items when using CSharpMath with SkiaSharp #15699

Open ViDanMaster opened 1 year ago

ViDanMaster commented 1 year ago

Description:

So I have a carouselview and when using CSharpMath with SkiaSharp (above 0.3.0 it requires SkiaSharp) when adding more than 5 items to the carouselview, it will simply just loop through the first 5 items even though Loop = False and when using Debug.Writeline, it shows the correct data. Using CSharpMath without SkiaSharp (so basically version 0.3.0) the carouselview works perfectly fine.

Steps to Reproduce:

I made a github repo where I reproduce the issue: https://github.com/ViDanMaster/CarouselViewSample

Expected Behavior:

Carouselview rotates through all 20 items

Actual Behavior:

Carouselview repeats the first 5 items 4 times

Basic Information:

Everything is in the github repo, but as far as I am aware every xamarin.forms above 5 has this issue, but I don't even know if it is a CarouselView issue or a SkiaSharp / CSharpMath issue. I hope the github repo contains enough information to look at this issue.