Selection​Changed​Event​Args Selection​Changed​Event​Args Selection​Changed​Event​Args Class

Definition

Provides data for the SelectionChanged event.

public class SelectionChangedEventArgs : RoutedEventArgs, ISelectionChangedEventArgspublic class SelectionChangedEventArgs : RoutedEventArgs, ISelectionChangedEventArgsPublic Class SelectionChangedEventArgs Inherits RoutedEventArgs Implements ISelectionChangedEventArgs
Inheritance
SelectionChangedEventArgsSelectionChangedEventArgsSelectionChangedEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Remarks

Note

For ListView and GridView: If the ItemsSource implements IItemsRangeInfo, and selection is modified using SelectRange or DeselectRange, the AddedItems and RemovedItems properties are not set. Setting these properties requires devirtualizing the item object. Use the SelectedRanges property to get the items instead.

Constructors

SelectionChangedEventArgs(IVector<Object>, IVector<Object>) SelectionChangedEventArgs(IVector<Object>, IVector<Object>) SelectionChangedEventArgs(IVector<Object>, IVector<Object>)

Initializes a new instance of the SelectionChangedEventArgs class.

public SelectionChangedEventArgs(IVector<Object> removedItems, IVector<Object> addedItems)public SelectionChangedEventArgs(IVector<Object> removedItems, IVector<Object> addedItems)Public Sub New(removedItems As IVector<Object>, addedItems As IVector<Object>)
Parameters
removedItems

Sets the initial AddedItems value. May be null.

addedItems

Sets the initial RemovedItems value. May be null.

Attributes

Properties

AddedItems AddedItems AddedItems

Gets a list that contains the items that were selected.

public IVector<object> AddedItems { get; }public IVector<object> AddedItems { get; }Public ReadOnly Property AddedItems As IVector<object>
Value

The loosely typed collection of items that were selected in this event.

Attributes

Remarks

Note

For ListView and GridView: If the ItemsSource implements IItemsRangeInfo, and selection is modified using SelectRange or DeselectRange, the AddedItems and RemovedItems properties are not set. Setting these properties requires devirtualizing the item object. Use the SelectedRanges property to get the items instead.

RemovedItems RemovedItems RemovedItems

Gets a list that contains the items that were unselected.

public IVector<object> RemovedItems { get; }public IVector<object> RemovedItems { get; }Public ReadOnly Property RemovedItems As IVector<object>
Value

The loosely typed list of items that were unselected in this event.

Attributes

Remarks

Note

For ListView and GridView: If the ItemsSource implements IItemsRangeInfo, and selection is modified using SelectRange or DeselectRange, the AddedItems and RemovedItems properties are not set. Setting these properties requires devirtualizing the item object. Use the SelectedRanges property to get the items instead.