/// <summary> /// Handles the GotFocus event of the Password control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void Password_GotFocus(object sender, RoutedEventArgs e) { _lastFocusedInputControlName = InputControlNames.Password; }
/// <summary> /// Handles the GotFocus event of the UserName control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void UserName_GotFocus(object sender, RoutedEventArgs e) { _lastFocusedInputControlName = InputControlNames.UserName; }