Xamarin形式:ScrollView在TranslateTo上返回乞讨状态

问题描述:

当我在XamarinForms上调用TranslateTo滚动视图时,ScrollX和ScrollY都变为0,这对我来说很烦人,因为我们的布局设计需要这种动画.任何人都有解决此问题的想法吗?

Well when I call TranslateTo an scrollview on XamarinForms it's both ScrollX and ScrollY becomes 0, which is very annoying for me because our layout design needs that kind of animation. Anyone has any ideas how to work around this?

如丹尼尔·卢伯达(Daniel Luberda)所建议的那样,如果将滚动视图放在contentview中并转换contentview,则滚动视图的滚动索引不会返回0.

As Daniel Luberda suggested, if you put your scrollview inside contentview and transate the contentview, scroll view's scroll indexes does not return to 0.