Esempio n. 1
0
        private void Entry_three_TextChanged(object sender, TextChangedEventArgs e)
        {
            var text = (sender as Entry).Text;

            if (text.Length == 1 && !string.IsNullOrEmpty(text))
            {
                if (text != " ")
                {
                    Entry_four.Focus();
                }
            }
            else
            {
                var previousEntry = GetPreviousEntry(sender as Entry);
                if (previousEntry != null)
                {
                    previousEntry.Focus();
                }
            }
        }
Esempio n. 2
0
 private void Entry_three_TextChanged(object sender, TextChangedEventArgs e)
 {
     if (string.IsNullOrEmpty(Entry_three.Text))
     {
         var previousEntry = GetPreviousEntry(sender as Entry);
         if (previousEntry != null)
         {
             previousEntry.Focus();
         }
         (BindingContext as LoginPageViewModel).ExitBtnIsVisible = true;
     }
     else
     {
         Entry_four.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;
         }
     }
 }