EditBase.ClearIcon Property
Gets or sets the clear icon image. This is a bindable property.
Namespace: DevExpress.Maui.Editors
Assembly: DevExpress.Maui.Editors.dll
NuGet Package: DevExpress.Maui.Editors
Declaration
public ImageSource ClearIcon { get; set; }
Property Value
Type | Description |
---|---|
ImageSource | The icon image. |
Remarks
The clear icon appears on the right side of the edit box when a user enters text. Use the ClearIconVisibility property to change the visibility of the clear icon.
Use the ClearIconColor property to specify the icon’s color. To use a custom image for the clear 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
ClearIcon
property:<dxe:TextEdit ClearIcon="icon"/>
The following settings allow you to set the action that occurs when a user taps the clear icon:
Property/Event | Description |
---|---|
Occurs when a user taps the clear icon. | |
Gets or sets the command executed when a user taps the clear icon. This is a bindable property. | |
Gets or sets the parameter passed to the ClearIconCommand. This is a bindable property. |