New to Telerik UI for WPFStart a free 30-day trial

Represents a class that holds the selection state for the selection behaviors.

Definition

Namespace:Telerik.Windows.Controls.Primitives

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class SelectionState

Inheritance: objectSelectionState

Constructors

Initializes a new instance of the SelectionState class.

C#
public SelectionState(Func<IEnumerable> getAllItems)
Parameters:getAllItemsFunc<IEnumerable>

Properties

Gets or sets the anchor.

C#
public object Anchor { get; set; }

Gets or sets a value indicating whether the previous selected items will be cleared.

C#
public bool ClearPreviousSelectedItems { get; set; }

Gets or sets the state of the current items. If no value is set, true is default one.

C#
public bool? CurrentItemsState { get; set; }

Gets all selector items.

C#
public IEnumerable Items { get; }

Gets the items for selection.

C#
public IList<object> ItemsForSelection { get; }

Gets or sets the pressed mouse button.

C#
public SelectionMouseState MouseState { get; set; }

Gets the previous selected items.

C#
public IList<object> PreviousSelectedItems { get; }