Skip to main content

PasswordRevealMode

Whether and how a PasswordBox lets the user see the password.

Inherits: enum.Enum

Properties

  • HIDDEN - There is no reveal button: the password is always hidden.
  • PEEK - A reveal button shows the password while it is pressed.
  • PEEK_ALWAYS - A reveal button shows the password while it is pressed, and stays available whenever the box has focus and is not empty.
  • VISIBLE - There is no reveal button: the password is always shown.

Properties​

HIDDENclass-attributeinstance-attribute​

There is no reveal button: the password is always hidden.

PEEKclass-attributeinstance-attribute​

A reveal button shows the password while it is pressed. The button is hidden again after the box loses focus, until the box is cleared.

PEEK_ALWAYSclass-attributeinstance-attribute​

A reveal button shows the password while it is pressed, and stays available whenever the box has focus and is not empty.

VISIBLEclass-attributeinstance-attribute​

There is no reveal button: the password is always shown.