I have a CarouselView which is binded to a ObservableCollection. Whenever I add some item in that collection, I set the position of CarouselView to count - 1 of the ObservableCollection, so the view goes to recently added item. It works fine. But if I Clear that observable collection and then I add another item to that collection, the forms app crashes with index out of range. Note that I still didn't set position yet, it just crashes when i add item to the observable collection first time after clearing items. If I never set position of carousel manually, then the code works fine all the time.
is it a bug or i am doing something wrong here?