Windows Dev Center

SelectionChangedEventArgs class

Provides data for the SelectionChanged event.

Inheritance

Object
  RoutedEventArgs
    SelectionChangedEventArgs

Syntax


public ref class SelectionChangedEventArgs : RoutedEventArgs

Members

The SelectionChangedEventArgs class has these types of members:

Constructors

The SelectionChangedEventArgs class has these constructors.

ConstructorDescription
SelectionChangedEventArgs Initializes a new instance of the SelectionChangedEventArgs class.

 

Methods

The SelectionChangedEventArgs class inherits methods from the Object class.

Properties

The SelectionChangedEventArgs class has these properties.

PropertyAccess typeDescription

AddedItems

Read-onlyGets a list that contains the items that were selected.

OriginalSource

Read-onlyGets a reference to the object that raised the event. This is often a template part of a control rather than an element that was declared in your app UI. (Inherited from RoutedEventArgs)

RemovedItems

Read-onlyGets a list that contains the items that were unselected.

 

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.
 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object
RoutedEventArgs

 

 

Show:
© 2015 Microsoft