Xamarin形式:ScrollView在TranslateTo上返回乞讨状态 [英] Xamarin Forms: ScrollView returns to begging on TranslateTo

查看:100
本文介绍了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.

这篇关于Xamarin形式:ScrollView在TranslateTo上返回乞讨状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆