While it is possible to do so, you will probably be better off to just bind the checkbox property that you want to investigate or change, to a value in a background viewmodel or controller.
E.g. if it was the IsChecked
that you want to change to true, then try this:
<CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" Content="{Binding Description}" />
You then hook up the ComboBox
to a list of items using its ItemsSource
property:
<ComboBox ItemsSource="{Binding Options}">
<ComboBox.ItemTemplate>
<CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" Content="{Binding Description}" />
</ComboBox.ItemTemplate>
</ComboBox>
Also you will have to set the DataContext
of the container control or the ComboBox
so that the control can access the object with those properties.
Doing it this way, means you can have less code in the code-behind of the control or window that is just doing plumbing work like updating controls.
If you need more examples, let me know...