[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.
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
'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.
|SelectedItemsProperty||SelectedItems attached property.|
|SelectorSourceProperty||SourceSelector attached property.|
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.