locked
ListView scrollTo method with animation?

    Question

  • Hello,

    Now I use ListView.scrollTo() method.

    I have succeeded to move Listview to the specified index, but without animation.

    Is there some way to scroll ListView to the specified index with animation?

    Thanks.

     

    Tuesday, December 20, 2011 9:28 AM

Answers

  • Hi YO,

    No there is no built in way to animate this.  Imagine the memory, graphic and processing burden if you animated from scroll position 1 to 10,000.  This would not make for a good application design.

    -Jeff


    Jeff Sanders (MSFT)
    • Marked as answer by _Y_O Thursday, December 22, 2011 3:00 AM
    Wednesday, December 21, 2011 7:52 PM
    Moderator

All replies

  • Hi YO,

    No there is no built in way to animate this.  Imagine the memory, graphic and processing burden if you animated from scroll position 1 to 10,000.  This would not make for a good application design.

    -Jeff


    Jeff Sanders (MSFT)
    • Marked as answer by _Y_O Thursday, December 22, 2011 3:00 AM
    Wednesday, December 21, 2011 7:52 PM
    Moderator
  • Thanks, Jeff.

    I understand.

    • Marked as answer by _Y_O Thursday, December 22, 2011 2:56 AM
    • Unmarked as answer by _Y_O Thursday, December 22, 2011 2:56 AM
    Thursday, December 22, 2011 1:20 AM
  • Hi YO,

    please post your code of scrolling ListView by index.

    Thanks.

    Saturday, March 24, 2012 9:30 PM
  • Is this method still there? I mean, it does not seem to be defined at all. I've also checked in ui.js.
    Thursday, May 31, 2012 8:15 AM
  • Gi,

    This post was from Back in December.  There have been significant changes in the APIs since then that are covered in the Migration documents at the top of the forum posts.  Did you find what you need?

    -Jeff


    Jeff Sanders (MSFT)

    Monday, June 4, 2012 8:11 PM
    Moderator
  • Ok, great. Yes after that question I've found another way (still suggested by you I guess ;) )
    Monday, June 4, 2012 8:22 PM