nix
nix

Reputation: 2285

How to animate BoxView position?

I want to have two buttons side by side, and a BoxView, which will stand under the button which is pressed, therefore it must be able to slide from under one button, to another. I tried looking for that but cannot find anything related to Xamarin Forms position animation. How can I do that? Any resources or advices on doing what I'm trying to do will be welcomed, thanks.

Upvotes: 0

Views: 546

Answers (1)

eakgul
eakgul

Reputation: 3698

Use LayoutTo(position, duration, easing) method like:

yourBoxView.LayoutTo(new Rectangle(x,y,width,height),500,Easing.Linear)

Upvotes: 2

Related Questions