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

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