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(RoutedEvent?, T, T)
Initializes an instance of the class.
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?)
Provides event arguments for a cancelable property change routed event, indicating the old and new values.
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. |
PropertyChangingRoutedEventArgs(T, T)
Initializes an instance of the class.
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. |
Properties
Cancel
Indicates whether the event should be canceled.
public bool Cancel { get; set; }
Property Value
- bool:
trueto cancel the event; otherwise,false. The default value isfalse.
NewValue
The new value of the property being tracked as reported by an event.
public T NewValue { get; set; }
Property Value
- T
OldValue
The previous value of the property being tracked as reported by an event.
public T OldValue { get; }
Property Value
- T
Inherited Members
- EventArgs.Empty
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()