This repository has been archived by the owner on May 1, 2024. It is now read-only.
'Index was out of range.' on CarouselView #14237
Labels
Projects
Comments
|
something like that |
I don't use jump to CarouselView position. I also learned that previous page and its viewmodel get disposed when navigating to another page. (Which is good) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Hi, I'm not sure what this is.
I've tried to debug it as best as I can as my experience is pretty limited.
I'm hoping to learn something from this experience.
CarouselView display items correctly on first load.
After navigate to different page and back to the said page.
Application in debug mode stops and throws :
and
I don't have any function that call CarouselView scroll to position.
I've put try catch in all suspected functions but no error was caught.
Application successfully built and deployed.
Steps to Reproduce
Expected Behavior
Navigate back and forth without error.
Actual Behavior
Application exit unexpectedly when run on Android device.
Basic Information
NETStandard.Library 2.0.3
sqlite-net-pcl 1.7.355
Xamarin.Essentials 1.6.1
Xamarin.Forms 5.0.0.2012
Environment
you can find 'Output-Debug.txt' in the repository
Screenshots
Reproduction Link
https://github.com/rumbledot/T_Rec_Public.git
Workaround
manually set CarouselView.Position = 1 when a flag of items loaded is set to true
The text was updated successfully, but these errors were encountered: