New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public class MaskedEntryValueChangingEventArgs : EventArgs

Inheritance: objectEventArgsMaskedEntryValueChangingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the MaskedEntryValueChangingEventArgs class.

C#
public MaskedEntryValueChangingEventArgs()

Properties

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

C#
public bool Cancel { get; set; }
Property Value:

true if the value change should be cancelled; otherwise, false.

Gets a value indicating whether all required inputs have been entered into the formatted string. This property is meaningful only in a Text MaskedEntry.

C#
public bool IsMaskCompleted { get; }
Property Value:

true if the mask is completed; otherwise, false.

Gets or sets a value indicating whether the NewValue is considered valid according to internal (mask, regex) or external (application) validation.

C#
public bool IsValid { get; set; }
Property Value:

true if the new value is valid; otherwise, false.

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.

C#
public object NewValue { get; set; }
Property Value:

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

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

C#
public IList<string> ValidationErrors { get; }
Property Value:

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

Gets or sets a ValidationMessage for the end user. If no custom message is set, returns the first validation error from ValidationErrors if available.

C#
public string ValidationMessage { get; set; }
Property Value:

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