Class ValueChangingEventArgs<T>
Provides data for events that allow modification or cancellation of a property change in the Cancellable Work Pattern (CWP).
public class ValueChangingEventArgs<T>
Type Parameters
T
The type of the property value, which may be a nullable reference type (e.g., string?).
- Inheritance
-
ValueChangingEventArgs<T>
- Inherited Members
Remarks
Used in pre-change events raised by ChangeProperty<T>(T, T, Func<ValueChangingEventArgs<T>, bool>, EventHandler<ValueChangingEventArgs<T>>?, Action<ValueChangedEventArgs<T>>?, EventHandler<ValueChangedEventArgs<T>>?, out T) to allow handlers to modify the proposed value or cancel the change, such as for SchemeName or OrientationHelper.
Constructors
- ValueChangingEventArgs(T, T)
Initializes a new instance of the ValueChangingEventArgs<T> class.
Properties
- CurrentValue
Gets the current value before the change.
- Handled
Gets or sets a value indicating whether the change has been handled. If true, the change is cancelled.
- NewValue
Gets or sets the proposed new value, which can be modified by event handlers.