SelectionChangedEventArgs SelectionChangedEventArgs SelectionChangedEventArgs Class

Definition

Provides data for the SelectionChanged event.

public : class SelectionChangedEventArgs : RoutedEventArgs, ISelectionChangedEventArgs
public class SelectionChangedEventArgs : RoutedEventArgs, ISelectionChangedEventArgs
Public 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)

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, IVector) SelectionChangedEventArgs(IVector, IVector) SelectionChangedEventArgs(IVector, IVector)

Initializes a new instance of the SelectionChangedEventArgs class.

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

Sets the initial AddedItems value. May be null.

addedItems
IVector<Platform::Object> IList<Object> IList<Object>

Sets the initial RemovedItems value. May be null.

Properties

AddedItems AddedItems AddedItems

Gets a list that contains the items that were selected.

public : IVector<Platform::Object> AddedItems { get; }
public IList<object> AddedItems { get; }
Public ReadOnly Property AddedItems As IList<object>
Value
IVector<Platform::Object> IList<object> IList<object>

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

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.

OriginalSource OriginalSource OriginalSource

Inherited from RoutedEventArgs

RemovedItems RemovedItems RemovedItems

Gets a list that contains the items that were unselected.

public : IVector<Platform::Object> RemovedItems { get; }
public IList<object> RemovedItems { get; }
Public ReadOnly Property RemovedItems As IList<object>
Value
IVector<Platform::Object> IList<object> IList<object>

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

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.

See Also