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

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

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

Syntax

'Declaration
Public NotInheritable Class MultiSelectionHelper
public static class MultiSelectionHelper
public ref class MultiSelectionHelper abstract sealed
[<AbstractClass>]
[<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

Top

Methods

  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.

Top

Fields

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

Top

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

Reference

Microsoft.TeamFoundation.Controls.WPF Namespace