private void EntryOnCompleted(object sender, EventArgs e)
 {
     if (sender == UserNameEntry)
     {
         PasswordEntry.Focus();
     }
     if (sender == PasswordEntry)
     {
         if (ConfirmPasswordEntry.IsVisible)
         {
             ConfirmPasswordEntry.Focus();
         }
     }
 }
Example #2
0
        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);
            };
        }
Example #3
0
 private void PasswordEntry_OnCompleted(object sender, EventArgs e)
 {
     ConfirmPasswordEntry.Focus();
 }