IEditableCollectionView::AddNew Method ()
.NET Framework (current version)
Adds a new item to the collection.
Assembly: WindowsBase (in WindowsBase.dll)
The following example creates a Window that prompts the user to add a new item. Then it calls AddNew to create a new object and sets the DataContext of the Window to that object. For the entire sample, see Changing a Collection by Using IEditableCollectionView Sample.
.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.1
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.1
Show: