Im quite new to wpf and have to following problem.
I need to create a List (i am using a listbox) of items that can be expanded (expander). The problem is, that they can be expanded, only if they have been 'selected'. Each listboxitem should have a checkbox and some text.
So very basic example to illustrate what i mean:
<listbox> <item>(checkbox) John Doe</item> <item>(checkbox) Mike Murray</item> </listbox> If any (so multiple is allowed) of the checkboxes in the listbox are checked, then the item expands showing more data.
Again an example:
<listbox> <item> (checkbox-checked) John Doe Some extra data shown in expanded area </item> <item> (checkbox-unchecked) Mike Murray</item> </listbox> I cant get a expander to use a checkbox as 'togglebutton'.
Could anyone help me out? Some example code would be very welcome...