Skip to main content

ComboBoxEdit.DropUpIcon Property

Gets or sets the custom drop-up icon image.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

Declaration

public ImageSource DropUpIcon { get; set; }

Property Value

Type Description
ImageSource

The icon image.

Remarks

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

Use the DropDownIconColor to specify the icon’s color. To set a custom image for the drop-up 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 DropUpIcon property:

    <dxe:ComboBox DropUpIcon = "icon"/>
    

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

See Also