Provides property name and value data for notifications raised before a property changes.
Handlers can cancel the change; callers that apply a handler-modified NewValue can also use it to replace the proposed value.
Definition
Namespace:Telerik.WinControls.Interfaces
Assembly:Telerik.WinControls.dll
Syntax:
public class PropertyChangingEventArgsEx : CancelEventArgs
Inheritance: objectEventArgsCancelEventArgsPropertyChangingEventArgsEx
Inherited Members
Constructors
Initializes event data with the old and proposed values and an initial cancellation state.
public PropertyChangingEventArgsEx(string propertyName, object oldValue, object newValue, bool cancel)
The name of the property being changed.
oldValueobjectThe value before the change.
newValueobjectThe proposed value.
cancelbooltrue to initialize the event as canceled.
Initializes event data with the old and proposed values and an uncanceled state.
Initializes event data with a property name and no value data or cancellation.
public PropertyChangingEventArgsEx(string propertyName)
The name of the property being changed.
Properties
Gets or sets the proposed value carried by the notification.
public object NewValue { get; set; }
Gets the value before the change, when supplied by the caller.
public object OldValue { get; }
Gets the name of the property associated with the notification.
public virtual string PropertyName { get; }