We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Open carousel item in another Page using Binding

Thread ID:

Created:

Updated:

Platform:

Replies:

147879 Sep 26,2019 05:32 PM UTC Sep 27,2019 01:44 PM UTC Xamarin.Forms 1
loading
Tags: SfCarousel
Luis Mendoza
Asked On September 26, 2019 05:32 PM UTC

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>



Muneesh Kumar G [Syncfusion]
Replied On September 27, 2019 01:44 PM UTC

Hi Luis, 
 
Greetings from Syncfusion. 
 
We have prepared a sample using SelectionChangedEvent in SfCarousel Control when the image is Tapped directly for the image tapped. Please have the sample for the same,

Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/CarouselPageNavigation1006564269

Please check with the sample and if the requirement differs from the above scenario. Please explain the requirement in detail or provide a pictorial representation for the same which will be easier for us to provide the solution. 
 
Thanks,   
Muneesh Kumar G.   
 


CONFIRMATION

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon