Hi,
I tried something like this to be able to detect a tap event on the currently selected image but then it's breaking the native behavior of the carousel :
<carousel:SfCarousel.ItemTemplate> <DataTemplate> <Image Source="{Binding ImageSource}" Aspect="AspectFill" MinimumHeightRequest="40" MinimumWidthRequest="40"> <Image.GestureRecognizers> <TapGestureRecognizer Command="{Binding Path=BindingContext.PhotoTappedCommand, Source={Reference Name=PictureListPage}}" CommandParameter="{Binding Id}" /> </Image.GestureRecognizers> </Image> </DataTemplate> </carousel:SfCarousel.ItemTemplate>
|
When you tap the previous or next photo, they won't become the currently selected item .
Furthermore it's not convenient to do this as we want to be able to display full screen the currently selected image by tapping on it, and we need to prevent the full screen mode when tapping on the previous/next image.
Is there a better way to do this ?
Regards,
Julien