Table of Contents

Class SelectedItemsCollectionSynchronizerBehavior

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

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

DependencyProperty

CollectionProperty

Property to associate selected items

public static readonly DependencyProperty CollectionProperty

Field Value

DependencyProperty

Properties

BindsTwoWay

True/False whether to go both directions in selection

public bool BindsTwoWay { get; set; }

Property Value

bool

Collection

Instance wrapper for selected items backing storage

public IList Collection { get; set; }

Property Value

IList

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.