PasswordEdit.ShowPasswordIcon Property
Gets or sets the custom show password icon image. This is a bindable property.
Namespace: DevExpress.Maui.Editors
Assembly: DevExpress.Maui.Editors.dll
NuGet Package: DevExpress.Maui.Editors
Declaration
public ImageSource ShowPasswordIcon { get; set; }
Property Value
Type | Description |
---|---|
ImageSource | The icon image. |
Remarks
The show password icon appears on the right side of PasswordEdit when the password is hidden. When a user taps the icon, the editor reveals the password and changes the icon to the hide password icon (HidePasswordIcon). Use the PasswordIconVisibility property to change the visibility of the show password icon.
To set a custom image for the show password icon, follow the steps below:
Add the icon file (for example, icon.svg) to the Resources/Images folder. Make sure that its build action is set to MauiImage.
Assign the icon to the
ShowPasswordIcon
property:<dxe:PasswordEdit ShowPasswordIcon="icon"/>
You can also use the HidePasswordIcon property to set the custom image for the hide password icon.