private void PopUpOpenButton_Click(object sender, RoutedEventArgs e) { SlideGridAddTask.Width = 1100; PopUpOpenButton.Visibility = Visibility.Hidden; PopUpOpenButton.IsDefault = false; ToDoTextBox.Focus(); ListViewTaskList.SelectedValue = null; CreateTaskButton.IsDefault = true; EditTaskButton.IsDefault = false; RefreshAddNewTaskFields(); }
private void PopUpOpenButton_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Return) { SlideGridAddTask.Width = 1100; PopUpOpenButton.Visibility = Visibility.Hidden; ListViewTaskList.SelectedValue = null; ToDoTextBox.Focus(); CreateTaskButton.IsDefault = true; EditTaskButton.IsDefault = false; PopUpOpenButton.IsDefault = false; } }