protected override async void OnAppearingAnimationEnd() { if (!IsAnimationEnabled) { return; } var translateLength = 400u; await Task.WhenAll( UsernameEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), UsernameEntry.FadeTo(1), (new Func <Task>(async() => { await Task.Delay(200); await Task.WhenAll( PasswordEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), PasswordEntry.FadeTo(1)); }))()); await Task.WhenAll( CloseImage.FadeTo(1), CloseImage.ScaleTo(1, easing: Easing.SpringOut), CloseImage.RotateTo(0), LoginButton.ScaleTo(1), LoginButton.FadeTo(1)); }
protected async override Task OnAppearingAnimationEnd() { var translateLength = 400u; await Task.WhenAll( Nombre.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), Apellido.FadeTo(1)); await Task.WhenAll( UsernameEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), UsernameEntry.FadeTo(1), Profesion.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), Profesion.FadeTo(1), (new Func <Task>(async() => { await Task.Delay(200); await Task.WhenAll( PasswordEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), PasswordEntry.FadeTo(1)); }))()); await Task.WhenAll( LoginButton.ScaleTo(1), LoginButton.FadeTo(1)); }
protected override async Task OnAppearingAnimationEndAsync() { if (!IsAnimationEnabled) { return; } var translateLength = 400u; await Task.WhenAll( UsernameEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), UsernameEntry.FadeTo(1), (new Func <Task>(async() => { await Task.Delay(100); await Task.WhenAll( EmailEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), EmailEntry.FadeTo(1) ); }))(), (new Func <Task>(async() => { await Task.Delay(100); await Task.WhenAll( PasswordEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), PasswordEntry.FadeTo(1) ); }))(), (new Func <Task>(async() => { await Task.Delay(100); await Task.WhenAll( PasswordConfirmEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), PasswordConfirmEntry.FadeTo(1) ); }))(), (new Func <Task>(async() => { await Task.Delay(100); await Task.WhenAll( PhoneNumberEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), PhoneNumberEntry.FadeTo(1) ); }))() ); await Task.WhenAll( RegisterButton.ScaleTo(1), RegisterButton.FadeTo(1) ); RegisterButton.IsEnabled = false; }
protected override async Task OnAppearingAnimationEndAsync() { if (!IsAnimationEnabled) { return; } var translateLength = 400u; await Task.WhenAll( UsernameEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), UsernameEntry.FadeTo(1), (new Func <Task>(async() => { await Task.Delay(150); await Task.WhenAll( PasswordEntry.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), PasswordEntry.FadeTo(1) ); }))(), (new Func <Task>(async() => { await Task.Delay(300); await Task.WhenAll( RememberCheckBox.TranslateTo(0, 0, easing: Easing.SpringOut, length: translateLength), RememberCheckBox.FadeTo(1) ); }))() ); await Task.WhenAll( //CloseImage.FadeTo(1), //CloseImage.ScaleTo(1, easing: Easing.SpringOut), //CloseImage.RotateTo(0), LoginButton.ScaleTo(1), LoginButton.FadeTo(1), RegisterButton.ScaleTo(1), RegisterButton.FadeTo(1), OrEntry.ScaleTo(1), OrEntry.FadeTo(1) ); LoginButton.IsEnabled = false; }