Click or drag to resize

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.Wpf
Assembly: TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
See GetSelectionBinding, SetSelectionBinding

Property Value

IList
Example
If your view model has two properties "AnyList Items { get; }" and "IList SelectedItems { get; set; }" your XAML looks like this:

C#
<ListBox ItemsSource="{Binding Path=Items}" core:MultiSelectorExtensions.SelectionBinding="{Binding Path=SelectedItems}"/>
See Also