Class
SelectionChangedCommandContext

Provides context information for selection changed commands.

Definition

Namespace:Telerik.Maui.Controls.Compatibility.DataControls.ListView.Commands

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

cs-api-definition
public class SelectionChangedCommandContext

Inheritance: objectSelectionChangedCommandContext

Constructors

SelectionChangedCommandContext(NotifyCollectionChangedAction, IList, int, IList, int)

Initializes a new instance of the SelectionChangedCommandContext class.

Declaration

cs-api-definition
public SelectionChangedCommandContext(NotifyCollectionChangedAction action, IList newItems, int newStartingIndex, IList oldItems, int oldStartingIndex)

Parameters

action

NotifyCollectionChangedAction

The action that caused the selection change.

newItems

IList

The newly selected items.

newStartingIndex

int

The starting index of the newly selected items.

oldItems

IList

The previously selected items.

oldStartingIndex

int

The starting index of the previously selected items.

Properties

Action

Gets the action that caused the selection change.

Declaration

cs-api-definition
public NotifyCollectionChangedAction Action { get; }

Property Value

NotifyCollectionChangedAction

The collection changed action.

NewItems

Gets the newly selected items.

Declaration

cs-api-definition
public IList NewItems { get; }

Property Value

IList

The collection of newly selected items.

NewStartingIndex

Gets the starting index of the newly selected items.

Declaration

cs-api-definition
public int NewStartingIndex { get; }

Property Value

int

The starting index of new items.

OldItems

Gets the previously selected items.

Declaration

cs-api-definition
public IList OldItems { get; }

Property Value

IList

The collection of previously selected items.

OldStartingIndex

Gets the starting index of the previously selected items.

Declaration

cs-api-definition
public int OldStartingIndex { get; }

Property Value

int

The starting index of old items.