CanCancelEdit Property

IEditableCollectionView.CanCancelEdit Property

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

Gets a value that indicates whether the collection view can discard pending changes and restore the original values of an edited object.

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

bool CanCancelEdit { get; }

Property Value

Type: System.Boolean
true if the collection view can discard pending changes and restore the original values of an edited object; otherwise, false.

CanCancelEdit is true if the view supports the notion of "pending changes" on the currently edited item. For example, a collection view might return true if the edited item implements IEditableObject, or if the view has information about the item's state that it can use to roll back changes. CanCancelEdit is false if the view cannot revert changes on an object. In that case, call CancelEdit to cause the view to exit the edit state and provide logic to revert the changes on the object that was edited.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft