Binding to the selected items of a ListBox (or an another items contro

added by jmix90
6/14/2010 8:53:18 AM


A problem you often meet when using MVVM is to get the selected items of an items control, especially Listbox. You can easily bind the selected item or the current items but when multi selection comes in the way, it becomes harder because the SelectedItems (with an 's' property is not available to binding). In this article we will discover an easy way to bind yourself with an attached property to the SelectedItems property of the ListBox control.