SelectionChangedEventArgs SelectionChangedEventArgs SelectionChangedEventArgs Class

Provides data for the SelectionChanged event.

Syntax

Declaration

public class SelectionChangedEventArgspublic class SelectionChangedEventArgsPublic Class SelectionChangedEventArgs

Inheritance Hierarchy

Remarks

Note

For ListView and GridView: If the ItemsSource implements IItemsRangeInfo, and selection is modified using SelectRange(Windows.UI.Xaml.Data.ItemIndexRange) or DeselectRange(Windows.UI.Xaml.Data.ItemIndexRange), 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 summary

Initializes a new instance of the SelectionChangedEventArgs class.

Properties summary

Gets a list that contains the items that were selected.

Gets a list that contains the items that were unselected.

Constructors

  • SelectionChangedEventArgs(Windows.Foundation.Collections.IVector{System.Object},Windows.Foundation.Collections.IVector{System.Object})
    SelectionChangedEventArgs(Windows.Foundation.Collections.IVector{System.Object},Windows.Foundation.Collections.IVector{System.Object})
    SelectionChangedEventArgs(Windows.Foundation.Collections.IVector{System.Object},Windows.Foundation.Collections.IVector{System.Object})
    SelectionChangedEventArgs(Windows.Foundation.Collections.IVector{System.Object},Windows.Foundation.Collections.IVector{System.Object})

    Initializes a new instance of the SelectionChangedEventArgs class.

    public SelectionChangedEventArgs(Windows.Foundation.Collections.IVector{System.Object} removedItems,Windows.Foundation.Collections.IVector{System.Object} addedItems)public SelectionChangedEventArgs(Windows.Foundation.Collections.IVector{System.Object} removedItems,Windows.Foundation.Collections.IVector{System.Object} addedItems)Public Function SelectionChangedEventArgs(removedItems As Windows.Foundation.Collections.IVector{System.Object},addedItems As Windows.Foundation.Collections.IVector{System.Object}) As

    Parameters

    • removedItems

      Sets the initial AddedItems value. May be null.

    • addedItems

      Sets the initial RemovedItems value. May be null.

Properties

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.UI.Xaml.Controls.dll