IEditableCollectionView.CanCancelEdit Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
ReadOnly Property CanCancelEdit As Boolean
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.
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.