BaseEdit.EditValueChanging Event
Occurs before the editor’s value is changed.
Namespace: DevExpress.WinUI.Editors
Assembly: DevExpress.WinUI.Editors.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public event EditValueChangingEventHandler EditValueChanging
#Event Data
The EditValueChanging event's data class is EditValueChangingEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Is |
Gets or sets a value indicating whether the event should be canceled. |
New |
Gets a new value to be assigned to the editor. |
Old |
Gets or sets the current edit value, which should be replaced by the new value. |
#Remarks
The EditValueChanging event is raised when the editor’s value is about to be changed (a user types or deletes a character, presses a spin button, etc.). The potential new value is returned by the event parameter’s NewValue property. The current value is returned by the OldValue property. To cancel posting a NewValue to BaseEdit.EditValue, set the Handled and event parameter’s IsCancel properties to true.
After the editor’s value has been changed, the BaseEdit.EditValueChanged event is fired.