I have a WPF application using Caliburn.Micro.
The DataGrid has an attribute SelectedItem=”{Binding Path=SelectedUsageRecord}”
As you can see, SelectedItem is bound to SelectedUsageRecord property. But I need to be able to handle selecting multiple records. Is this possible to bind multiple records to a collection property? I don’t see anything like “SelectedItems”…
Thanks.
Here’s what I did after striking the same scenario as you. In short handle the selection change event directly and pull the selected rows from the event args.
Assuming a source collection of “Rows” each one being a RowViewModel, and a collection for the “_selectedRows”.