示例#1
0
 private void UsernameTextBoxKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         ApiKeyTextBox.Focus();
     }
 }
示例#2
0
        protected override void OnInit()
        {
            if (string.IsNullOrEmpty(UsernameTextBox.Text))
            {
                UsernameTextBox.Focus();
                return;
            }

            if (string.IsNullOrEmpty(ApiKeyTextBox.Text))
            {
                ApiKeyTextBox.Focus();
                return;
            }

            LoginPasswordBox.Focus();
        }