Using the latest CarouselView nuget package.
Put a carousel view in your application and scroll to the left but DONT go to the next page. stop before it clicks to the next page. (so you remain on the initial page)
application will crash with "Sequence does not contain a matching element"
I have only tested this on Android
Same here. Version is 2.3.0-pre1
I think everyone has this issue.
Same here. XF 22.214.171.124, CarouselView 2.3.0-pre1
Same here CarouselView 2.3.0-pre1.
This is really serious. I refactroed my App from CarouselPage to CarouselView because it was announced CarouselPage will be deprecated and now I'm facing this exception.
I have pasted stacktraces where it happend here:
Created attachment 16510 [details]
Created attachment 16520 [details]
As you can see, where Single is called the collection contains two elements, likely because it's in between two elements.
Changing the Single call to .First eliminates the bug.
Actually just realized, that although the result is the same in my case the Exception was ""Sequence contains more than one element" not the one above in the Issue Title. Not sure if this is another problem.
@thomas That could be a mistake on my part. It sounds like the same error from what you are describing
Also occurs with Xamarin.Forms 126.96.36.199
Can you open source this control even before it's merged to the XF branch?
Confirmed duplicate of https://bugzilla.xamarin.com/show_bug.cgi?id=40513. Will be fixed in pre2.
When will be pre 2 be released?
The version pre-2 is now available on nuget.org.
I have checked this issue with latest Xamarin.forms.CarouseView 2.3.0-pre2 and xamarin.forms 188.8.131.52 and observed that this issue has been fixed.
Hence closing this issue.
NOTE: I am getting Load exception when using latest Xamarin.forms 184.108.40.206-pre2 so I have filed separate Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=44533
*** Bug 42112 has been marked as a duplicate of this bug. ***
I am still getting this error with Xamarin.forms.CarouseView 2.3.0-pre2 and xamarin.forms 220.127.116.11
Getting same error with Preview version of XForms
@Man_xam, I have already filed a issue with Xamarin.forms.CarouseView 2.3.0-pre2 which is mention in comment #17.
Please let me if you getting same issue as bug:#44533 or any other issue.