public Both() { InitializeComponent(); On <Xamarin.Forms.PlatformConfiguration.Android>().SetToolbarPlacement(ToolbarPlacement.Bottom); On <Xamarin.Forms.PlatformConfiguration.Android>().SetBarSelectedItemColor(Color.SteelBlue); On <Xamarin.Forms.PlatformConfiguration.Android>().SetBarItemColor(Color.Black); emailEntry.Completed += (s, e) => usernameEntry.Focus(); usernameEntry.Completed += (s, e) => passwordEntry.Focus(); passwordEntry.Completed += (s, e) => passwordEntry2.Focus(); passwordEntry2.Completed += (s, e) => phonenumberEntry.Focus(); phonenumberEntry.Completed += (s, e) => SignUpClickEvent(s, e); UsernameLoginEntry.Completed += (s, e) => PasswordLoginEntry.Focus(); PasswordLoginEntry.Completed += (s, e) => LoginClickEvent(s, e); }
public async void PasswordLoginShake() { uint timeout = 50; await PasswordLoginEntry.TranslateTo(-15, 0, timeout); await PasswordLoginEntry.TranslateTo(15, 0, timeout); await PasswordLoginEntry.TranslateTo(-10, 0, timeout); await PasswordLoginEntry.TranslateTo(10, 0, timeout); await PasswordLoginEntry.TranslateTo(-5, 0, timeout); await PasswordLoginEntry.TranslateTo(5, 0, timeout); PasswordLoginEntry.TranslationX = 0; }