Table of Contents

Class ValueChangedEventArgs<T>

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Provides data for events that notify of a completed property change in the Cancellable Work Pattern (CWP).

public class ValueChangedEventArgs<T>

Type Parameters

T

The type of the property value, which may be a nullable reference type (e.g., string?).

Inheritance
ValueChangedEventArgs<T>
Inherited Members

Remarks

Used in post-change events raised by ChangeProperty<T>(T, T, Func<ValueChangingEventArgs<T>, bool>, EventHandler<ValueChangingEventArgs<T>>?, Action<ValueChangedEventArgs<T>>?, EventHandler<ValueChangedEventArgs<T>>?, out T) to notify subscribers of a property change, such as in OrientationHelper when the Orientation property is updated or SchemeName when the scheme name changes.

Constructors

ValueChangedEventArgs(T, T)

Initializes a new instance of the ValueChangedEventArgs<T> class.

Properties

NewValue

Gets the value after the change, which may be null for nullable types.

OldValue

Gets the value before the change, which may be null for nullable types.

See Also