Ejemplo n.º 1
0
        public LoginPage()
        {
            InitializeComponent();
            BindingContext = new LoginViewModel();

            user.Focus();

            user.Completed += (sender, e) => {
                Pwd.Focus();
            };
            NavigationPage.SetHasNavigationBar(this, false);
        }
Ejemplo n.º 2
0
 void Keyboard_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (sender == UserName)
         {
             Pwd.Focus();
         }
         else
         {
             LoginBtn_Click(this, null);
         }
     }
 }