Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void NAICSList_SelectionChanged(object sender, SelectionChangedEventArgs e)
- {
- if(NAICSList.SelectedIndex != -1)
- {
- ListBoxItem item = this.NAICSList.ItemContainerGenerator.ContainerFromIndex(NAICSList.SelectedIndex) as ListBoxItem;
- CheckBox tagregCheckBox = FindFirstElementInVisualTree<CheckBox>(item);
- if (tagregCheckBox.IsChecked != true)
- {
- tagregCheckBox.IsChecked = true;
- }
- else
- {
- tagregCheckBox.IsChecked = false;
- }
- }
- NAICSList.SelectedIndex = -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement