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)

Syntax

Protected Overrides Sub OnItemsChanged ( _
    e As NotifyCollectionChangedEventArgs _
)
protected override void OnItemsChanged(
    NotifyCollectionChangedEventArgs e
)

Parameters

Remarks

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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Selector Class

System.Windows.Controls.Primitives Namespace