C# WPF listbox with checkboxes - code seeing every item IsChecked = true : I have a WPF Listbox which contains a list of checkboxes which are all named as the names of other controls in another window.

When the listbox is looped by grabbing each item in lst_control.Items:

    foreach(Control item in lst_controls.Items)
    {
        if (item.IsChecked)
        //Add item to list

    }

It sees each item.IsChecked as true - even if it is unchecked?

Weird behaviour - has anyone seen this before?

Thanks :-)
   
