private void EntryOnCompleted(object sender, EventArgs e) { if (sender == UserNameEntry) { PasswordEntry.Focus(); } if (sender == PasswordEntry) { if (ConfirmPasswordEntry.IsVisible) { ConfirmPasswordEntry.Focus(); } } }
public void Automate() { var vm = new RegisterStudentViewModel(Navigation); UsernameEntry.Completed += (object sender, EventArgs e) => { PasswordEntry.Focus(); }; PasswordEntry.Completed += (object sender, EventArgs e) => { ConfirmPasswordEntry.Focus(); }; ConfirmPasswordEntry.Completed += (object sender, EventArgs e) => { PhoneNumberEntry.Focus(); }; PhoneNumberEntry.Completed += (object sender, EventArgs e) => { NameEntry.Focus(); }; NameEntry.Completed += (object sender, EventArgs e) => { AgeEntry.Focus(); }; AgeEntry.Completed += (object sender, EventArgs e) => { ClassEntry.Focus(); }; ClassEntry.Completed += (object sender, EventArgs e) => { INameEntry.Focus(); }; INameEntry.Completed += (object sender, EventArgs e) => { vm.RegisterStudent.Execute(null); }; }
private void PasswordEntry_OnCompleted(object sender, EventArgs e) { ConfirmPasswordEntry.Focus(); }