Skip to main content

ComboBoxEdit.DropDownIcon Property

Gets or sets the custom drop-down icon image.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

Declaration

public ImageSource DropDownIcon { get; set; }

Property Value

Type Description
ImageSource

The icon image.

Remarks

The drop-down icon is an icon that appears on the right side of the ComboBoxEdit when the drop-down list is collapsed. When a user taps the icon, the drop-down list appears, and the icon changes to the drop-up icon (DropUpIcon). Use the IsDropDownIconVisible property to change the visibility of the drop-down icon.

To set a custom image for the drop-down 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 DropDownIcon property:

    <dxe:ComboBox DropDownIcon = "icon"/>
    

You can also use the DropUpIcon property to set the custom image for the drop-up icon.

See Also