Skip to main content

EditBase.EndIcon Property

Specifies the trailing icon image.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

Declaration

public ImageSource EndIcon { get; set; }

Property Value

Type Description
ImageSource

Icon image

Remarks

If the EndIcon property is set, the trailing icon appears on the right side of the editor.

To set the image for the end 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 EndIcon property:

    <dxe:TextEdit EndIcon = "icon"/>
    

Use the EndIconColor property to color the icon.

The following settings allow you to set the action that occurs when a user taps the end icon:

Property/Event

Description

EndIconClicked

Occurs when a user taps the trailing icon.

EndIconCommand

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

EndIconCommandParameter

Specifies the parameter passed to the EndIconCommand.

See Also