Search code examples
windows-8windows-store-appsscrollviewerwindows-store

How to scroll a ScrollViewer with animation


I have a scrollviewer in a windows store app, I want to scroll it to a specific location, ScrollToHorizontalOffset does that but without animation, I want to do that with animation.


Solution

  • If you do this in Windows 8.1, use ChangeView to use animations.

    If you're stuck doing it in Windows 8, then you'll need WinRTXamlToolkit. It adds an extension method: ScrollToHorizontalOffsetWithAnimation.