How to perform an operation while changing the carouselItem?
5 Jun 2020 / 1 minute to read
We can perform operation while changing the carouselItem using DidSelectItem
event. DidSelectItem event returns the index changed SfCarouselItem.
Delegate Definition:
For getting carousel event, need to inherits SfCarouselDelegate class as like below. All events definitions are mentioned only DelegateClass.
public class DelegateClass : SfCarouselDelegate
{
public override void DidSelectItem(SfCarousel carousel, SfCarouselItem item)
{
base.DidSelectItem(carousel, item);
}
}
Delegate initialization
By initializing the CarouselDelegate with inherited class of SfCarouselDelegate, we can access the events on SfCarousel control.
carousel.CarouselDelegate = new DelegateClass();
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page