Events

The MaskedEntry exposes a set of events.

  • ValueChanging—Occurs when the editing value is changing. Through the MaskedEntryValueChangingEventArgs you can set the following properties:

    • NewValue—Gets or sets the new value that will be set to the control.
    • IsValid—Gets or sets a value indicating whether the new value is considered valid according to internal (mask, regex) and external (application) validation.
    • ValidationErrors—Gets a list of the internal validation errors.
    • ValidationMessage—Gets or sets a validation message for the end user.
    • Cancel—Gets or sets a value indicating whether the event will be canceled.
  • ValueChanged—Occurs when the editing value has been changed. ValueChanged is fired if the ValueChanging event is not canceled. Through the MaskedEntryValueChangedEventArgs you can set the following properties:

    • Value—Specifies the new value set to the control.
    • Text—Specifies the new value with the formatting applied.
    • IsValid—Indicates whether the new value is considered valid according to internal (mask, regex) and external (application) validation.
    • ValidationMessage—Defines a validation message for the end user.

For the Events example, refer to the MaskedEntry/Events folder of the SDK .NET MAUI Application.

See Also

In this article
Not finding the help you need?