Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

NotifyCollectionChangedEventArgs.NewItems Property

Gets the items affected by an action.

Namespace:  System.Collections.Specialized
Assembly:  System.Windows (in System.Windows.dll)

public IList NewItems { get; }

Property Value

Type: System.Collections.IList
The list of items affected by an action. The default is null.

In the existing Silverlight implementation, INotifyCollectionChanged is always used for single item changes. Because of the NotifyCollectionChangedEventArgs constructor signatures, it is not possible to raise CollectionChanged in such a way that it reports multiple items.

The type of this property is IList for compatibility, but in the existing Silverlight implementation you can generally assume that the IList only contains one item. To get that item you could use the C# shorthand of collectionChangedEventArgs.NewItems[0].

NewItems will contain the following depending on the Action being reported in the event data:


Add contains:


The newly added item.




The newly added (replacing) item.




Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2015 Microsoft