private void ShowControls() { BackLabel.TranslateTo(0, 0, AnimationSpeed); EmailEntry.TranslateTo(0, 0, AnimationSpeed); PasswordEntry.TranslateTo(0, 0, AnimationSpeed); BackLabel.FadeTo(1, AnimationSpeed); EmailEntry.FadeTo(1, AnimationSpeed); PasswordEntry.FadeTo(1, AnimationSpeed); }
private void HideControls() { BackLabel.FadeTo(0, AnimationSpeed); EmailEntry.FadeTo(0, AnimationSpeed); PasswordEntry.FadeTo(0, AnimationSpeed); BackLabel.TranslateTo(0, 30, AnimationSpeed); EmailEntry.TranslateTo(0, -60, AnimationSpeed); PasswordEntry.TranslateTo(0, -60, AnimationSpeed); }
private void StartLayout() { BackLabel.FadeTo(0, 1); EmailEntry.FadeTo(0, 1); PasswordEntry.FadeTo(0, 1); BackLabel.TranslateTo(0, 30, 1); EmailEntry.TranslateTo(0, -60, 1); PasswordEntry.TranslateTo(0, -60, 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; }