ClassMaskedEntryValueChangingEventArgs
Provides data for the value changing event of a masked entry control. This class extends EventArgs and implements IMaskValueChangingContext to provide comprehensive validation and cancellation capabilities.
Definition
Namespace:Telerik.Maui.MaskedEntry
Assembly:Telerik.Maui.Core.dll
Syntax:
public class MaskedEntryValueChangingEventArgs : EventArgs
Inheritance: objectEventArgsMaskedEntryValueChangingEventArgs
Inherited Members
Constructors
MaskedEntryValueChangingEventArgs()
Initializes a new instance of the MaskedEntryValueChangingEventArgs class.
Declaration
public MaskedEntryValueChangingEventArgs()
Properties
Cancel
Gets or sets a value indicating whether changing the Value should be cancelled.
Declaration
public bool Cancel { get; set; }
Property Value
true
if the value change should be cancelled; otherwise, false
.
IsMaskCompleted
Gets a value indicating whether all required inputs have been entered into the formatted string. This property is meaningful only in a Text MaskedEntry.
Declaration
public bool IsMaskCompleted { get; }
Property Value
true
if the mask is completed; otherwise, false
.
IsValid
Gets or sets a value indicating whether the NewValue is considered valid according to internal (mask, regex) or external (application) validation.
Declaration
public bool IsValid { get; set; }
Property Value
true
if the new value is valid; otherwise, false
.
NewValue
Gets or sets the value that will be given to the UI masked view. The original value of this property was processed by the internal mask engine, but the user is allowed to change this value if needed.
Declaration
public object NewValue { get; set; }
Property Value
The new value to be applied to the masked entry control.
ValidationErrors
Gets the collection of validation errors that occurred during value validation.
ValidationMessage
Gets or sets a ValidationMessage for the end user. If no custom message is set, returns the first validation error from ValidationErrors if available.