I have a multiselect ComboBox
with the following template:
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox
VerticalAlignment="Center"
Checked="checkBox_Checked"
ClickMode="Press"
Unchecked="checkBox_Unchecked" />
<TextBlock Text="{Binding Position}" />
</StackPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
My question is, if the checkBox is checked, how could I get the value from the TextBlock
(what should be the code in checkBox_Checked
? I will be needing it for further use.