如何在 Xamarin.Forms 中使用 ScrollToAsync 函数时从当前位置开始滚动

How to start scroll from current position while using ScrollToAsync function in Xamarin.Forms

我正在使用带有一系列 images.When 的水平滚动视图我使用 ScrollToAsync 函数滚动从滚动视图的开始(水平方向)开始,然后滚动到所需的元素。我应该怎么做才能使滚动视图从当前位置而不是开始位置滚动。

scroll.ScrollToAsync(stackLayout.Children[Index],ScrollToPosition.Start,true);

Note: This happens only when ScrollOrientation is Horizontal

提前致谢,

您使用的是什么版本的表单,此错误似乎已在 1.5.1-pre1 中修复

https://bugzilla.xamarin.com/show_bug.cgi?id=28965