Back to API Reference
Class

PasswordBehavior

sealed

A single-line password field: Enter submits, line breaks are rejected, every codepoint renders as the mask character, copy/cut are blocked unless AllowCopy, and native input uses secure entry. The stored text remains plain text; Revealed only changes its presentation.

public string MaskChar{ get; set }

Glyph shown for every hidden character.

public bool AllowCopy{ get; set }

Whether copy and cut may expose the stored password.

public bool Revealed{ get; set }

Show-password toggle for an "eye" control: when, the text renders unmasked. Affects only this layer's rendering — in native-overlay mode the OS field owns its own reveal. Does not change AllowCopy.

protected override void OnEnable()
protected override void OnDisable()