Back to Devexpress

EditBase.ErrorIcon Property

maui-devexpress-dot-maui-dot-editors-dot-editbase-415a41d4.md

latest2.3 KB
Original Source

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

csharp
public ImageSource ErrorIcon { get; set; }

Property Value

TypeDescription
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:

  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:

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

EditBase Class

EditBase Members

DevExpress.Maui.Editors Namespace