Class SelectedItemsCollectionSynchronizerBehavior
This behavior provides a multi-selection binder to tie a ViewModel collection to a WPF multi-select list. This includes ListBox, ListView, DataGrid, Calendar, and anything else which supports the Selector or MultiSelector base class.
public class SelectedItemsCollectionSynchronizerBehavior : Behavior<Selector>, IAnimatable, IAttachedObject
- Inheritance
-
SelectedItemsCollectionSynchronizerBehavior
- Implements
- Inherited Members
- Extension Methods
Fields
BindsTwoWayProperty
True/False whether to go both directions in selection
public static readonly DependencyProperty BindsTwoWayProperty
Field Value
CollectionProperty
Property to associate selected items
public static readonly DependencyProperty CollectionProperty
Field Value
Properties
BindsTwoWay
True/False whether to go both directions in selection
public bool BindsTwoWay { get; set; }
Property Value
Collection
Instance wrapper for selected items backing storage
public IList Collection { get; set; }
Property Value
Methods
OnAttached()
Called after the behavior is attached to an AssociatedObject.
protected override void OnAttached()
Remarks
Override this to hook up functionality to the AssociatedObject.
OnDetaching()
Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.
protected override void OnDetaching()
Remarks
Override this to unhook functionality from the AssociatedObject.