Hi,
I have a list box with its itemtemplate set to contain checkboxes. How do I retrieve the checkboxes through an event after having set the itemsource on the listbox.
<ListBox ItemsSource={Binding Path=People}>
<ListBox.ItemTemplate>
<DataTemplate>
<CheckBox Content=Name />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
private void CheckBox_Checked(object sender, RoutedEventArgs e)
{
(sender as ListBox).Items ----- this is the itemssource
How do I get the check box object?????
}
Thanks in advance.
Person.