Silverlight Multiselect Listbox
Posted by: Hannes Preishuber,
on 07 Nov 2008 |
View original | Bookmarked: 0 time(s)
The Listbox control of Silverlight 2 have no multi selection. Datagrid have! I want to show how to build a Listbox with Checkboxes and iterate at the end through all items an see if they are checked. Seams to be easy!? But isn't. You can not access the content of the datatemplate. One solution is to use visualtreehelper to iterate through all controls of controltree. That is quite complkicated cause e.g a checkbox is a composition of Textblock and Rectangle. I show the databinding way which...