示例#1
0
 private void KeyHome(KeyEventArgs e)
 {
     TextHours.Focus();
     TextHours.CaretIndex = 0;
     e.Handled            = true;
 }
示例#2
0
 private void TextHours_GotFocus(object sender, RoutedEventArgs e)
 {
     lastFocus = "TextHours";
     TextHours.SelectAll();
 }