MultiselectList of Windows Phone

MultiselectList is handy if all you need is a simple list allowing multiple selections. What if you also want each item is clickable, or each item is a custom control.  This may be able to be implemented by customizing MultiselectLit and MultiselectItem.  However, the easiest and most robust way may be dynamically populating a StackPanel with with Grids. It usually takes fewer than 10 lines of code to populate it.  Each Grid can have a CheckBox which is added to a list. The list can be easily checked to retrieved the checked items.  The key property is tag.

This article was updated on 20:43:10 2024-03-31