This project has moved and is read-only. For the latest updates, please go here.

Multiple Selections

Jan 18, 2010 at 3:45 PM

What is the preferred way to notify the ViewModel of <ListBox SelectionMode="Multiple"> selected items?

Jan 18, 2010 at 8:05 PM

I would create a SelectedItems property in the ViewModel class which holds a list of selected models. The View (code-behind) is responsible to synchronize the SelectedItems list of the ListBox with the one of the ViewModel.

Best Regards,