Class
MaskedEntryValueChangingEventArgs

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:

cs-api-definition
public class MaskedEntryValueChangingEventArgs : EventArgs

Inheritance: objectEventArgsMaskedEntryValueChangingEventArgs

Inherited Members EventArgs.Empty

Constructors

MaskedEntryValueChangingEventArgs()

Initializes a new instance of the MaskedEntryValueChangingEventArgs class.

Declaration

cs-api-definition
public MaskedEntryValueChangingEventArgs()

Properties

Cancel

Gets or sets a value indicating whether changing the Value should be cancelled.

Declaration

cs-api-definition
public bool Cancel { get; set; }

Property Value

bool

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

cs-api-definition
public bool IsMaskCompleted { get; }

Property Value

bool

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

cs-api-definition
public bool IsValid { get; set; }

Property Value

bool

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

cs-api-definition
public object NewValue { get; set; }

Property Value

object

The new value to be applied to the masked entry control.

ValidationErrors

Gets the collection of validation errors that occurred during value validation.

Declaration

cs-api-definition
public IList<string> ValidationErrors { get; }

Property Value

IList<string>

An IList<T> of string containing validation error messages.

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.

Declaration

cs-api-definition
public string ValidationMessage { get; set; }

Property Value

string

A string containing the validation message to display to the user.