Animate (smoothly) ScrollViewer programmatically

后端 未结 4 1069
暗喜
暗喜 2020-12-29 02:24

Is there a way to smoothly animate a ScrollViewers vertical offset in Windows Phone 8.1 Runtime?

I have tried using the ScrollViewer.ChangeView()<

4条回答
  •  抹茶落季
    2020-12-29 02:51

    With ScrollToVerticalOffset deprecated/obsolete in newer builds of Windows 10 (leaving the ScrollViewOffSetMediator extension control no longer working), and the new ChangeView method not actually providing smooth or controllable animation, a new solution is needed. Please see my answer here which allows one to smoothly animate and zoom the ScrollViewer and its contents to any desired position, regardless of where the application's end user has the scrollbars initially positioned:

    How to scroll to element in UWP

提交回复
热议问题