Issue in Xamarin Forms Carousel view in Android

y_SBSICy_SBSIC USMember ✭✭✭

Hi, I am trying to implement a carousel view in Xamarin.Forms. It is working fine on IOS but on Android I am getting an exception :
System.DivideByZeroException: Attempted to divide by zero.
I am stuck in this please suggest how can I resolve this.

xmlns:cv="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView"

<cv:CarouselView ItemsSource="{Binding Event.EventImages}" Position="{Binding Position, Mode=TwoWay}" Margin="15,0,15,0" HeightRequest="240" HorizontalOptions="FillAndExpand"> <cv:CarouselView.ItemTemplate> <DataTemplate> <ff:CachedImage x:Name="BannerImage" HorizontalOptions="FillAndExpand" DownsampleUseDipUnits="True" DownsampleHeight="240" DownsampleWidth="240" Aspect="{Binding ImageAspect}" DownsampleToViewSize="True" LoadingPlaceholder="bigloadinggif.gif" Source="{Binding ImageURL}"> <ff:CachedImage.GestureRecognizers> <TapGestureRecognizer Tapped="Image_Tapped" NumberOfTapsRequired="1"/> </ff:CachedImage.GestureRecognizers> </ff:CachedImage> </DataTemplate> </cv:CarouselView.ItemTemplate> </cv:CarouselView>

Best Answers

Answers

Sign In or Register to comment.