Skip to content

PasswordBox class

Defined in

Namespace: CrissCross.WPF.UI.Controls Assembly: CrissCross.WPF.UI.dll Full name: CrissCross.WPF.UI.Controls.PasswordBox Modifiers: public

Summary

        The modified password control. TextProperty contains asterisks OR raw password if IsPasswordRevealed is set to true, PasswordProperty always contains raw password.
        

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Class hierarchy
classDiagram
class PasswordBox
class TextBox
TextBox <|-- PasswordBox

Inherits from: TextBox

Constructors

NameSummary
.ctorInitializes a new instance of the [PasswordBox](# class.

Properties

NameSummary
PasswordGets or sets currently typed text represented by asterisks.
PasswordCharGets or sets character used to mask the password.
IsPasswordRevealedGets a value indicating whether the password is revealed.
RevealButtonEnabledGets or sets a value indicating whether gets or sets a value deciding whether to display the reveal password button.

Fields

NameSummary
static PasswordPropertyProperty for [Password](#
static PasswordCharPropertyProperty for [PasswordChar](#
static IsPasswordRevealedPropertyProperty for [IsPasswordRevealed](#
static RevealButtonEnabledPropertyProperty for [RevealButtonEnabled](#
static PasswordChangedEventEvent for "Password has changed".

Methods

NameSummary
OnTextChanged
OnPasswordChangedIs called when [Password](# property is changing.
OnPasswordCharChangedIs called when [PasswordChar](# property is changing.
OnPasswordRevealModeChangedCalled when [password reveal mode changed].
OnTemplateButtonClickTriggered by clicking a button in the control template.

Events

NameSummary
PasswordChangedEvent fired from this text box when its inner content has been changed.
Inherited members