private void PasswordGotFocus(object sender, RoutedEventArgs e) { PasswordWatermark.Opacity = 0; PasswordText.Opacity = 100; PasswordText.SelectAll(); }
private void TextBox_KeyDown(object sender, KeyEventArgs e) { var tb = sender as TextBox; if (e.Key == Key.Enter) { tb.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next)); PasswordText.SelectAll(); } }
private void PassText_MouseClick(object sender, MouseEventArgs e) { PasswordText.SelectAll(); }