Skip to main content

EditBase.ErrorIcon Property

Gets or sets the error icon image. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

Declaration

public ImageSource ErrorIcon { get; set; }

Property Value

Type Description
ImageSource

The icon’s image.

Remarks

The error icon appears in the edit box when the editor is in an error state (HasError property is true).

DevExpress MAUI TextEdit - Error Icon

Use the ErrorIconColor and ErrorColor properties to specify the color of the error icon, borders, label, and error message. To set the custom image for the error icon, follow the steps below:

  1. Add the icon file (for example, icon.svg) to the Resources/Images folder. Make sure that its build action is set to MauiImage.

  2. Assign the icon to the ErrorIcon property:

    <dxe:TextEdit ErrorIcon="icon"/>
    

The following settings allow you to set the action that occurs when a user taps the error icon:

Property/Event

Description

ErrorIconClicked

Occurs when a user taps the error icon.

ErrorIconCommand

Gets or sets the command executed when a user taps the error icon. This is a bindable property.

ErrorIconCommandParameter

Gets or sets the parameter passed to the ErrorIconCommand. This is a bindable property.

See Also