EditBase.StartIcon Property

Specifies the leading icon image.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

Declaration

public ImageSource StartIcon { get; set; }

Property Value

Type Description
ImageSource

Icon image

Remarks

If StartIcon property is set, the leading icon appears on the left side of the editor.

To set the image for the start 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 StartIcon property:

    <dxe:TextEdit StartIcon = "icon"/>
    

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

Property/Event

Description

StartIconClicked

Occurs when a user taps the leading icon.

StartIconCommand

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

StartIconCommandParameter

Specifies the parameter passed to the StartIconCommand.

See Also