In This Article

PropertyChangingRoutedEventArgs<T> Class

Provides event arguments for a cancelable property change routed event, indicating the old and new values.

public class PropertyChangingRoutedEventArgs<T> : RoutedEventArgs
Type Parameters:
T -

The return type of the property.

Inheritance:
Object EventArgs RoutedEventArgs Object
Derived:
TabPropertyChangingRoutedEventArgs DoublePropertyChangingRoutedEventArgs SecureStringPropertyChangingRoutedEventArgs StringPropertyChangingRoutedEventArgs

Constructors

PropertyChangingRoutedEventArgs(T, T)

Initializes a new instance of the PropertyChangingRoutedEventArgs class with the Cancel property set to false.

public PropertyChangingRoutedEventArgs(T oldValue, T newValue)
Parameter Type Description
oldValue T

The previous value of the property being tracked as reported by an event.

newValue T

The new value of the property being tracked as reported by an event.

PropertyChangingRoutedEventArgs(RoutedEvent, T, T)

Initializes a new instance of the PropertyChangingRoutedEventArgs class with the Cancel property set to false.

public PropertyChangingRoutedEventArgs(RoutedEvent routedEvent, T oldValue, T newValue)
Parameter Type Description
routedEvent RoutedEvent

The routed event identifier for this event arguments instance.

oldValue T

The previous value of the property being tracked as reported by an event.

newValue T

The new value of the property being tracked as reported by an event.

PropertyChangingRoutedEventArgs(RoutedEvent, T, T, Object)

Initializes a new instance of the PropertyChangingRoutedEventArgs class.

public PropertyChangingRoutedEventArgs(RoutedEvent routedEvent, T oldValue, T newValue, object source)
Parameter Type Description
routedEvent RoutedEvent

The routed event identifier for this event arguments instance.

oldValue T

The previous value of the property being tracked as reported by an event.

newValue T

The new value of the property being tracked as reported by an event.

source Object

An alternate source that will be reported when the event is handled.

Properties

Cancel

Gets or sets a value indicating whether the event should be canceled.

public bool Cancel { get; set; }

Property Value

Boolean:

true to cancel the event; otherwise, false.

NewValue

Gets or sets the new value of the property being tracked as reported by an event.

public T NewValue { get; set; }

Property Value

T:

The new value of the property being tracked as reported by an event.

OldValue

Gets the previous value of the property being tracked as reported by an event.

public T OldValue { get; }

Property Value

T:

The previous value of the property being tracked as reported by an event.

Inherited Members