Animate by one on tap

2 posts, 0 answers
  1. Michael
    Michael avatar
    52 posts
    Member since:
    Dec 2005

    Posted 07 Jul 2011 Link to this post

    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!

    This seems to work so far:

    list.AnimateVerticalOffset(list.VerticalOffset - list.ItemHeight, new Duration(TimeSpan.FromMilliseconds(1000)), new CubicEase());
  2. Deyan
    Deyan avatar
    2026 posts

    Posted 08 Jul 2011 Link to this post

    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.

    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!

  3. DevCraft banner
Back to Top