public LoginPage() { InitializeComponent(); BindingContext = new LoginViewModel(); user.Focus(); user.Completed += (sender, e) => { Pwd.Focus(); }; NavigationPage.SetHasNavigationBar(this, false); }
void Keyboard_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { if (sender == UserName) { Pwd.Focus(); } else { LoginBtn_Click(this, null); } } }