Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147879 | Sep 26,2019 05:32 PM UTC | Sep 27,2019 01:44 PM UTC | Xamarin.Forms | 1 |
![]() |
Tags: SfCarousel |
How can I tap a carousel image and view it in another page. I´m using sfcarousel with itemtemplate and into image I am using a command. below I put the code.
<ResourceDictionary>
<DataTemplate x:Key="itemTemplate">
<Image
x:Name="ImageCarousel"
BindingContext="{Binding Proms}"
Source="{Binding Image}"
Aspect="AspectFit">
<Image.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Path=BindingContext.OpenImage, Source={x:Reference carousel}}"
CommandParameter="{x:Reference ImageCarousel}"/>
</Image.GestureRecognizers>
</Image>
</DataTemplate>
</ResourceDictionary>
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.