这个动画下拉列表可以在Xamarin中完成吗?如果是的话,该怎么做?
答案 0 :(得分:0)
这里是教程链接: https://trailheadtechnology.com/xamarin-forms-fancy-animations/
//collapse
MyContent.LayoutTo(new Rectangle(MyContent.Bounds.X, MyContent.Bounds.Y, MyContent.Bounds.Width, 0), 500, Easing.CubicIn)
//expand
MyContent.LayoutTo(new Rectangle(MyContent.Bounds.X, MyContent.Bounds.Y, MyContent.Bounds.Width, 300), 500, Easing.CubicOut)