private void Surname_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter) //la fel ca sus ^
     {
         Birthday.Focus();
     }
 }
Esempio n. 2
0
        public SignupPage()
        {
            signupViewModel = new SignupViewModel();

            InitializeComponent();

            Name.Completed += (object sender, EventArgs e) =>
            {
                CPF.Focus();
            };

            CPF.Completed += (object sender, EventArgs e) =>
            {
                Birthday.Focus();
            };

            Birthday.Completed += (object sender, EventArgs e) =>
            {
                Password.Focus();
            };

            Password.Completed += (object sender, EventArgs e) =>
            {
                signupViewModel.SignupCommand.Execute(null);
            };

            BindingContext = signupViewModel;
        }