This project has moved. For the latest updates, please go here.

Multiple Selections

Jan 18, 2010 at 2:45 PM

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

Coordinator
Jan 18, 2010 at 7: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,
   jbe