Skip to main content

NumericEdit.UpIcon Property

Allows you to specify a custom image for the up icon that increases the editor’s value.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

Declaration

public ImageSource UpIcon { get; set; }

Property Value

Type Description
ImageSource

The icon image.

Remarks

Set the IsUpDownIconVisible property to true to display up and down icons in the editor. These icons allow users to increase and decrease the editor’s number by the step value.

To use a custom image for the up or 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 UpIcon or DownIcon property, for example:

    <dxe:NumericEdit UpIcon = "icon"/>
    

The UpIconColor and DownIconColor properties specify the up and down icon colors.

The following settings allow you to assign custom actions to the up and down icons:

Event / Property

Description

UpIconClicked / DownIconClicked

Events that occur when a user taps the up and down icons.

UpIconCommand / DownIconCommand
UpIconCommandParameter / DownIconCommandParameter

Commands executed when a user taps the up and down icons, and
parameters passed to these commands.

See Also