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
).
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:
Add the icon file (for example, icon.svg) to the Resources/Images folder. Make sure that its build action is set to MauiImage.
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 |
---|---|
Occurs when a user taps the error icon. | |
Gets or sets the command executed when a user taps the error icon. This is a bindable property. | |
Gets or sets the parameter passed to the ErrorIconCommand. This is a bindable property. |