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.

System.Object
  Microsoft.TeamFoundation.Controls.WPF.MultiSelectionHelper

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

public static class MultiSelectionHelper

The MultiSelectionHelper type exposes the following members.

  NameDescription
Public methodStatic memberGetSelectedItemsSelectedItems getter.
Public methodStatic memberGetSelectorSourceSelectorSource getter.
Public methodStatic memberSetSelectedItemsSelectedItems setter.
Public methodStatic memberSetSelectorSourceSelectorSource setter.
Top

  NameDescription
Public fieldStatic memberSelectedItemsPropertySelectedItems attached property.
Public fieldStatic memberSelectorSourcePropertySourceSelector attached property.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft