private void CancelButton_OnClick(object sender, RoutedEventArgs e) { SelectedItems = new List<Language>(); this.Close(); }