private void LessonsBox_Loaded(object sender, RoutedEventArgs e) { List <string> taskSubjects = new List <string>(); taskSubjects.AddRange(taskViewModel.GetSubjects()); LessonsBox.ItemsSource = taskSubjects; LessonsBox.SelectedIndex = 0; }