I'm trying to use ScrollToHorizontalOffsetWithAnimation and ScrollToVerticalOffsetWithAnimation, and it works, but when the animation is completed the ScrollViewer returns to the {0, 0} position.
This is my code. As you can see, its very simple:
private async void ScrollTo(double x, double y)
{
scrollViewer.ScrollToHorizontalOffsetWithAnimation(x);
scrollViewer.ScrollToVerticalOffsetWithAnimation(y);
}
I tried using only one animation, but the result is the same.
Is this only happening to me?
Do anyone know how to solve this strange behavior?
Im using RTM.
Thanks!