OnItemsChanged Method

Selector.OnItemsChanged Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Updates the current selected item when the Items collection has changed.

Namespace:  System.Windows.Controls.Primitives
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Protected Overrides Sub OnItemsChanged ( _
	e As NotifyCollectionChangedEventArgs _
)

Parameters

e
Type: System.Collections.Specialized.NotifyCollectionChangedEventArgs
Contains data about changes in the items collection.

This method determines whether an item was added, removed, or replaced in the item collection or whether the collection contents were reset. This method then sets the SelectedItem and SelectedIndex properties appropriately. This method does not raise collection-changed events.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft