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. Image for the cookie policy date
close icon

SfRotator click on an item event

Hi

How can I make a clickevent on a SfRotator item?

I have found this: http://help.syncfusion.com/cr/cref_files/xamarin/sfrotator/Syncfusion.SfRotator.XForms~Syncfusion.SfRotator.XForms.SfRotator+SelectedIndexChangedEventHandler.html

but
SelectedIndexChangedEventHandler cant't be found..

I can't find any example for this: https://help.syncfusion.com/xamarin-ios/sfrotator/overview

Can someone post an example how I must do this?

thanks for help



4 Replies

ET Eswaran Thirugnanasambandam Syncfusion Team September 1, 2017 11:38 AM UTC

Hi Andreas Marty, 
  
Thanks for contacting syncfusion support. 
  
Your requirement can be achieved by using SelectedIndexChanged Event. When you click the rotator item the selectedIndexChangeed event will be call. 
  
Code Example: 
  
rotator.SelectedIndexChanged += (object sender, SelectedIndexChangedEventArgs e) => 
{

};
  
  
We have prepared the sample based on your requirement. Please find the sample from the below link.

Link: http://www.syncfusion.com/downloads/support/forum/132418/ze/132418rotator-1014006257
 
Please let us know if you have any query. 

Regards, 
Eswaran AT.
  



CH Christian December 23, 2018 06:23 PM UTC

What aout picture clicked event? I mean, I have 10 pictures in the rotator control, I watch the 3rd pic and I want to click (tap) on that image (the bigger one) to see it on website (for example) or some action (process that image on another page, etc).
Is this possible?


CH Christian replied to Christian December 23, 2018 07:58 PM UTC

What aout picture clicked event? I mean, I have 10 pictures in the rotator control, I watch the 3rd pic and I want to click (tap) on that image (the bigger one) to see it on website (for example) or some action (process that image on another page, etc).
Is this possible?

I made adding GestureRecognizer to Image object :D


DR Dhanasekar R Syncfusion Team December 24, 2018 12:30 PM UTC

Hi Christian,  
  
Glad that the issue has been resolved and please get back to us if you need any other assistance.   
  
Thanks, 
Dhanasekar 


Loader.
Live Chat Icon For mobile
Up arrow icon