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

Animate by one on tap

1 Answer 56 Views
LoopingList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 08 Jul 2011, 02:00 AM
I would like to make my RadLoopingList animate by one item on the Tap event.  I started playing with the AnimateVerticalOffset method, but I'm getting strange results.  I found the ScrollList method in the FirstLook.xaml.cs of the examples, but that does random scrolling.  How can I make it reliably only scroll by one item with every tap?  Thanks!

[EDIT]
This seems to work so far:

list.AnimateVerticalOffset(list.VerticalOffset - list.ItemHeight, new Duration(TimeSpan.FromMilliseconds(1000)), new CubicEase());

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 08 Jul 2011, 08:04 AM
Hello Michael,

Thanks for contacting us and for your questions.

The approach of using AnimateVerticalOffset and passing the new offset as target value is the right one.

Let us know if you need further assistance with using RadLoopingList.

Greetings,
Deyan
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
LoopingList
Asked by
Michael
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or