MultiSelectionHelper Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Selection helper attached property class. This class provides attached properties for "binding" a WPF Selector control with an IList in a view model. Changes made to the selection in the control will be mirrored in an IList provided by the view model. If the view model's IList is an ObservableCollection, then this class will hook CollectionChanged and mirror the changes back into the view. The view model can also replace its complete collection at the same time (for efficiency) and the view's selection will be updated to match.

If the target control is a UserControl that is not directly a Selector but contains a child that is a Selector, the SelectorSource attached property can be used from code-behind .cs file to specify the child. An example of a control such as this is WorkItemsList.

Inheritance Hierarchy


Namespace:  Microsoft.TeamFoundation.Controls.WPF
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)


Public NotInheritable Class MultiSelectionHelper
public static class MultiSelectionHelper
public ref class MultiSelectionHelper abstract sealed
type MultiSelectionHelper =  class end
public final class MultiSelectionHelper

The MultiSelectionHelper type exposes the following members.

Attached Properties

  Name Description
Public attached property SelectedItems
Public attached property SelectorSource



  Name Description
Public methodStatic member GetSelectedItems SelectedItems getter.
Public methodStatic member GetSelectorSource SelectorSource getter.
Public methodStatic member SetSelectedItems SelectedItems setter.
Public methodStatic member SetSelectorSource SelectorSource setter.



  Name Description
Public fieldStatic member SelectedItemsProperty SelectedItems attached property.
Public fieldStatic member SelectorSourceProperty SourceSelector attached property.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.TeamFoundation.Controls.WPF Namespace