This is a migrated thread and some comments may be shown as answers.

RadCarrousel Events

1 Answer 67 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
leox
Top achievements
Rank 1
leox asked on 11 Jan 2012, 12:11 AM
Hi, how could i get the direction that the carrousel is moving to (is moving left, right)?

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 11 Jan 2012, 08:05 AM
Hi Leox,

You can handle ScrollChanged event of the ScrollViewer and verify what is the current offset:

<telerik:RadCarousel x:Name="myRadCarousel" ScrollViewer.ScrollChanged="myRadCarousel_ScrollChanged"/>

Thus you will know whether the scrolling to left or to right.
Generally, invoking MoveBy(index) with negative numbers will scroll right, while calling it with positive - scroll left.  


All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Carousel
Asked by
leox
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or