Find Control in DataTemplate with a multi selection listbox
问题 I have a multi selection listbox where a user can tick multiple items in the list. At the moment I have it so when a checkbox is ticked the ListBoxItem it is within also gets selected: private void CheckBox_Checked(object sender, RoutedEventArgs e) { //Select the Item using the DataContext of the Button object clicked = (e.OriginalSource as FrameworkElement).DataContext; var lbi = LstDistro.ItemContainerGenerator.ContainerFromItem(clicked) as ListBoxItem; lbi.IsSelected = true; } Now I am