| MultiSelectorExtensionsSelectionBinding Attached Property |
Attach this property to a ListBox or DataGrid to bind the selectors SelectedItems property to the view models SelectedItems property.
Namespace: TomsToolbox.WpfAssembly: TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax See GetSelectionBinding, SetSelectionBinding
See GetSelectionBinding, SetSelectionBinding
Property Value
IListExample
If your view model has two properties "AnyList Items { get; }" and "IList SelectedItems { get; set; }" your XAML looks like this:
<ListBox ItemsSource="{Binding Path=Items}" core:MultiSelectorExtensions.SelectionBinding="{Binding Path=SelectedItems}"/>
See Also