public async void StartOnClicked(object s, EventArgs e) { await MainGrid.TranslateTo(200, 300, 1000, Easing.Linear); await MainGrid.RotateTo(90, 800, Easing.SinOut); await MainGrid.FadeTo(0.5, 600, Easing.CubicOut); await MainGrid.LayoutTo(new Rectangle(-200, -300, 300, 100)); }
private async void btnAnimate_Clicked(object sender, EventArgs e) { await MainGrid.TranslateTo(200, 300, 1000, Easing.Linear); await MainGrid.RotateTo(90, 800, Easing.SinInOut); await MainGrid.FadeTo(0.5, 600, Easing.CubicOut); await MainGrid.LayoutTo(new Rectangle(-200, -300, 300, 100)); await MainGrid.ScaleTo(0.6, 500, Easing.CubicIn); }