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 } }
public AddTaskPage() { InitializeComponent(); ToDoTitle.Completed += (s, e) => { DoneButton.Focus(); }; }