示例#1
0
 /// <summary>
 /// Select all text in the username box when getting focus
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void AD_UsernameTextBox_GotFocus(object sender, RoutedEventArgs e)
 {
     AD_UsernameTextBox.SelectAll();
     AD_UsernameTextBox.Style = FindResource("TextBox") as Style;
 }
 /// <summary>
 /// Select all text in the AD Username box when getting focus
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void AD_UsernameTextBox_GotFocus(object sender, RoutedEventArgs e)
 {
     AD_UsernameTextBox.SelectAll();
 }