private void resource_tbx_KeyUp(object sender, KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { AccountAccepted?.Invoke(this, new EventArgs()); } }
private void password_pwb_KeyUp(object sender, KeyRoutedEventArgs e) { if (string.IsNullOrWhiteSpace(resource_tbx.Text)) { resource_tbx.Focus(FocusState.Keyboard); } else if (e.Key == Windows.System.VirtualKey.Enter) { AccountAccepted?.Invoke(this, new EventArgs()); } }