'Declaration Protected Friend Overloads Overridable Function CancelEdit( _ ByVal activity As ActivityBase, _ ByRef errorInfo As DataErrorInfo _ ) As Boolean
protected internal virtual bool CancelEdit( ActivityBase activity, out DataErrorInfo errorInfo )
Note: CancelEdit method is called by the XamScheduleDataManager to cancel modifications to an existing activity. It also calls this method to cancel and discard a new activity that was created using the CreateNew method, however the activity must not have been commited yet. This is typically done when the user cancels the dialog for creating a new activity, like the new appointment dialog.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2