PasswordEdit.HidePasswordIcon Property
Specifies the custom hide password icon image.
Namespace: DevExpress.XamarinForms.Editors
Assembly: DevExpress.XamarinForms.Editors.dll
NuGet Package: DevExpress.XamarinForms.Editors
Declaration
public ImageSource HidePasswordIcon { get; set; }
Property Value
Type | Description |
---|---|
ImageSource | The icon image. |
Remarks
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:
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.
- Android
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.