New to Telerik UI for WinForms? Start a free 30-day trial

Handlers can cancel the change through Cancel.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class RadPropertyChangingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsRadPropertyChangingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Gets the registered property being changed.

C#
public RadProperty Property { get; }

Constructors

Initializes change data including the source of the previous value.

C#
public RadPropertyChangingEventArgs(RadProperty property, object oldValue, object newValue, RadPropertyMetadata metadata, ValueSource oldSource)
Parameters:propertyRadProperty

The property being changed.

oldValueobject

The effective value before the change.

newValueobject

The proposed effective value.

metadataRadPropertyMetadata

The metadata associated with property.

oldSourceValueSource

The source that supplied the previous effective value.

Initializes change data with an unspecified previous value source.

C#
public RadPropertyChangingEventArgs(RadProperty property, object oldValue, object newValue, RadPropertyMetadata metadata)
Parameters:propertyRadProperty

The property being changed.

oldValueobject

The effective value before the change.

newValueobject

The proposed effective value.

metadataRadPropertyMetadata

The metadata associated with property.

Properties

Gets the metadata associated with Property.

C#
public RadPropertyMetadata Metadata { get; }

Gets or sets the proposed value included in the change notification.

C#
public object NewValue { get; set; }

Changing this event-data value does not replace the value applied by the current property-setting path.

Gets the source that supplied OldValue.

C#
public ValueSource OldSource { get; }

Gets the effective property value before the change.

C#
public object OldValue { get; }