CarouselView gets out of sync with rapid swiping of views
See original GitHub issueI have a page with a CarouselView containing 4 view - on rapid swiping data gets out of sync. The data that should be shown on 4th view is show on 3rd view and when you swipe to 4th view its blank. I have tried setting IsViewReusingEnabled = false but still getting out of sync data.
Also in between swiping - i get the following message in the console.
CardsView: Couldn’t handle InvalidOperationException
Below is the code snippet:
<cards:CarouselView
Grid.Row="1"
x:Name="MainCardView"
IsCyclical="False"
IsClippedToBounds="True"
IsViewReusingEnabled = "False"
SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
BackgroundColor="White"
ItemsSource="{Binding Characteristics}">
<cards:CarouselView.ItemTemplate>
<DataTemplate>
<ScrollView
BackgroundColor="{StaticResource AppWhite}"
Padding="24,0,24,16">
<StackLayout
Spacing="16"
BindableLayout.ItemsSource="{Binding Sections}"
BindableLayout.ItemTemplateSelector="{StaticResource ExploreDataTemplateSelector}">
</StackLayout>
</ScrollView>
</DataTemplate>
</cards:CarouselView.ItemTemplate>
<cardsControl:IndicatorsControl
SelectedIndicatorStyle="{StaticResource ActiveIndicator}"
UnselectedIndicatorStyle="{StaticResource InactiveIndicator}" />
</cards:CarouselView>
Issue Analytics
- State:
- Created 4 years ago
- Comments:37 (21 by maintainers)
Top Results From Across the Web
CarouselView gets out of sync with rapid swiping of views
I have a page with a CarouselView containing 4 view - on rapid swiping data gets out of sync. The data that should...
Read more >Carousel View swiping performance issue - Microsoft Q&A
After adding multiple content views inside Carousel view, it is getting little stuck on first swipe. Tried to debug it, and got one...
Read more >How do I get Xamarin.Forms CarouselPage in Android to ...
Sometimes, OnCurrentPageChanged does not get called on fast swiping and currentIndex gets out of sync. To correct this I changed ...
Read more >Carousel doesn't render Labels with Fade: False
There isn't a “flick swipe” gesture in place with the new carousel. That said, it wouldn't be hard to add, and I can...
Read more >Android Question Carousel View - B4X Programming Forum
This version works with landscape and portrait. I have added a opacity screen for visible images out of focus. There is no problem...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agreed that issue no 1 may not related to this library, but i’m not very sure about No 2 cause in screen that i used Text Label it still got that issue.
BTW i highly appreciate your effort to create this lib, troubleshoot issue and resolve it. Thanks so much.
Yes