示例#1
0
        public LoginPage()
        {
            InitializeComponent();
            BindingContext = new LoginViewModel();

            user.Focus();

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