TextEditBase.ClearIcon Property

Specifies the clear icon image.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll


public ImageSource ClearIcon { get; set; }

Property Value

Type Description

The icon image.


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.

To use a custom image for the clear icon, follow the steps below:

  1. Add the icon file (for example, icon.png) to your platform-specific projects:

    • Android
      Add the icon file to the Resources/drawable folder.
    • iOS
      Double-click the Assets.xcassets asset catalog, create a new icon image set, and add the icon to this image set.
  2. 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:




Occurs when a user taps the clear icon.


Specifies the command executed when a user taps the clear icon.


Specifies the parameter passed to the ClearIconCommand.

See Also