I would like to know how I do to run two animations at the same time
public async void OnClicked2Async(object sender, EventArgs e)
{
btn_login.SetValue(IsVisibleProperty, true);
await btn_login.TranslateTo(0, 175, 1000);
await btn_novaconta.TranslateTo(0, -60, 1000);
}
This is my code
You can "group" animations by adding Animation
instances to a parent/master Animation
instance and then committing them:
var button1Anim = new Animation(_ => button1.TranslateTo(0, 175, 1000));
var button2Anim = new Animation(_ => button2.TranslateTo(0, 175, 1000));
var masterAnimation = new Animation
{
{ 0, 1, button1Anim },
{ 0, 1, button2Anim }
};
masterAnimation.Commit(this, "MyAnim");
Re: Custom Animations
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With