IEditableCollectionView Interface
TOC
Collapse the table of content
Expand the table of content

IEditableCollectionView Interface

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

Defines methods and properties that a collection view implements to provide editing capabilities to a collection.

Namespace:  System.ComponentModel
Assembly:  System.Windows (in System.Windows.dll)

No code example is currently available or this language may not be supported.

The IEditableCollectionView type exposes the following members.

  NameDescription
Public propertyCanAddNewGets a value that indicates whether a new item can be added to the collection.
Public propertyCanCancelEditGets a value that indicates whether the collection view can discard pending changes and restore the original values of an edited object.
Public propertyCanRemoveGets a value that indicates whether an item can be removed from the collection.
Public propertyCurrentAddItemGets the item that is being added during the current add transaction.
Public propertyCurrentEditItemGets the item in the collection that is being edited.
Public propertyIsAddingNewGets a value that indicates whether an add transaction is in progress.
Public propertyIsEditingItemGets a value that indicates whether an edit transaction is in progress.
Public propertyNewItemPlaceholderPositionGets or sets the position of the new item placeholder in the collection view.
Top

  NameDescription
Public methodAddNewAdds a new item to the underlying collection.
Public methodCancelEditEnds the edit transaction and, if possible, restores the original value of the item.
Public methodCancelNewEnds the add transaction and discards the pending new item.
Public methodCommitEditEnds the edit transaction and saves the pending changes.
Public methodCommitNewEnds the add transaction and saves the pending new item.
Public methodEditItemBegins an edit transaction on the specified item.
Public methodRemoveRemoves the specified item from the collection.
Public methodRemoveAtRemoves the item at the specified position from the collection.
Top

When a collection view implements the IEditableCollectionView interface, you can directly change the underlying collection, if it allows changes to be made, by using the methods and properties that IEditableCollectionView exposes, regardless of the collection's type.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft