SelectionHelper
Represents a helper class which is used for selection.
Definition
Namespace:Telerik.Windows.Controls.Primitives
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class SelectionHelper
Inheritance: objectSelectionHelper
Constructors
Initializes a new instance of the SelectionHelper class.
[Obsolete("Obsoleted in Q2 2014. Not used and it will be deleted in future versions.")]
public SelectionHelper(Func<bool> canExecute, ISelectorInteraction selector, ISelectionBehavior behavior, Action<object, SelectionChangedEventArgs> selectionCallBack)
SelectionHelper(ISelectorInteraction, ISelectionBehavior, Action<object, SelectionChangedEventArgs>)
Initializes a new instance of the SelectionHelper class.
public SelectionHelper(ISelectorInteraction selector, ISelectionBehavior behavior, Action<object, SelectionChangedEventArgs> selectionCallBack)
Properties
Gets a value indicating whether the selection is active.
public bool IsActive { get; }
Gets the index of the selected item.
public int SelectedIndex { get; }
Gets the selected item.
public object SelectedItem { get; }
Methods
Adds items to selection.
Clears the selection.
public void ClearSelection()
UnSelects the items.
Gets the selected items.
Tries to execute all enqueued selection actions.
[Obsolete("Obsoleted in Q2 2014. Not used and it will be deleted in future versions.")]
public bool ResumeExecution()
Returns true if the actions can be executed, otherwise returns false.
Selects the items.
Updates the selection using the container and the current selected state.
public void UpdateSelection(UIElement container, bool isSelected)
Updates the selection behavior.
public void UpdateSelectionBehavior(ISelectionBehavior behavior)
Updates the selection on user interaction. The second SelectionMouseState parameter is optional. By default is SelectionMouseState.Left.
public void UpdateSelectionOnUserInteraction(object item, SelectionMouseState mouseState = SelectionMouseState.Left)
The data item or the container that was affected by the UI selection operation.
mouseStateSelectionMouseStateIndicates which mouse button was used to perform the operations.