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