I have followed the sample from the following post ...
but I cannot find a way to add a SelectedItem in code and have the associated checkbox ticked as a result.
I added a button to the main window, with the following click event:
private void Button_Click(object sender, RoutedEventArgs e)
ClassViewModel cvm = (ClassViewModel)DataContext;
When i click the button, the item gets added to the listbox as expected, BUT THE RESPECTIVE CHECKBOX REMAINS UNTICKED. Which is the problem!!
Please can you help? :0)
I have attached the project I am working with.