Beispiel #1
0
        private void Entry_one_TextChanged(object sender, TextChangedEventArgs e)
        {
            var text = (sender as Entry).Text;

            if (text.Length == 1 && !string.IsNullOrEmpty(text))
            {
                if (text != " ")
                {
                    Entry_two.Focus();
                }
            }
        }
Beispiel #2
0
 private void Entry_one_TextChanged(object sender, TextChangedEventArgs e)
 {
     if (string.IsNullOrEmpty(Entry_one.Text))
     {
         var previousEntry = GetPreviousEntry(sender as Entry);
         if (previousEntry != null)
         {
             previousEntry.Focus();
         }
         (BindingContext as LoginPageViewModel).ExitBtnIsVisible = true;
     }
     else
     {
         Entry_two.Focus();
         if (!string.IsNullOrEmpty(Entry_one.Text) && !string.IsNullOrEmpty(Entry_two.Text) && !string.IsNullOrEmpty(Entry_three.Text) && !string.IsNullOrEmpty(Entry_four.Text) && !string.IsNullOrEmpty(Entry_five.Text) && !string.IsNullOrEmpty(Entry_six.Text))
         {
             (BindingContext as LoginPageViewModel).ExitBtnIsVisible = false;
         }
     }
 }