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();
            }
        }
Example #3
0
 private void PassText_MouseClick(object sender, MouseEventArgs e)
 {
     PasswordText.SelectAll();
 }