Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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.

DevExpress MAUI TextEdit - Captions

Use the ClearIconColor property to specify the icon’s color. To use a custom image for the clear 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 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

ClearIconClicked

Occurs when a user taps the clear icon.

ClearIconCommand

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

ClearIconCommandParameter

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

See Also