Hi,
I've created a listbox with a data template with two fields (an Image and a textblock).
I also have a ok button, when clicked I wanted go thru the listbox and check each item whether it is selected or not.
When I do it like this:
foreach (CheckListBoxItem item in Apps.Items)
{
// check if item is selected
if (item.IsChecked)
{
}
}
This doesn't work. What do I need to change ? (I attached my sample code)
Thanks and regards
Uwe
Hi Sudharsan ,
thanks for your information.
Regards
Uwe
|
private void ButtonOk_Click(object sender, RoutedEventArgs e)
{
foreach (Apps item in Apps.SelectedItems)
{
}
Close();
} |
Hi Sudharsan,
thanks a lot :-)
Regards
Uwe