Skip to content

PasswordBox

Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

The one password field used on every page and in every plugin dialog: a TextBox with the theme’s text box look (same height, padding and centering), masked with PasswordBox.Mask, and an eye button on the right that shows the password as plain text and hides it again (tooltip “Show password” / “Hide password”). Bind TextBox.Text as usual; key bindings and focus work like on any text box. TextBox.RevealPassword is the shown state.

public class PasswordBox : TextBox

Inherits TextBox

Button RevealButton { get; }

The eye button (exposed for tests).

const string HideTip = "Hide password"

The tooltip of the eye button while the password shows.

const char Mask = '•'

The mask character (bullet).

const string ShowTip = "Show password"

The tooltip of the eye button while the password is hidden.