private void sampleRateTextBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     if ((e.Key == System.Windows.Input.Key.Enter) || (e.Key == System.Windows.Input.Key.Tab))
     {
         DoneButton.Focus(); // pass focus to another control
     }
 }
예제 #2
0
 public AddTaskPage()
 {
     InitializeComponent();
     ToDoTitle.Completed += (s, e) => {
         DoneButton.Focus();
     };
 }