PasswordEdit.HidePasswordIcon Property

Specifies the custom hide password icon image.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll


public ImageSource HidePasswordIcon { get; set; }

Property Value

Type Description

The icon image.


The hide password icon appears on the right side of PasswordEdit when the password is shown. When a user taps the icon, the editor hides the password and changes the icon to the show password icon (ShowPasswordIcon). Use the PasswordIconVisibility property to change the visibility of the hide password icon.

To set a custom image for the hide password 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 HidePasswordIcon property:

    <dxe:PasswordEdit HidePasswordIcon = "icon"/>

You can also use the ShowPasswordIcon property to set the custom image for the show password icon.

See Also