C# Class GitHub.UI.MaskedPasswordBox

A masking TextBox control based on http://blogs.ugidotnet.org/leonardo

You might be wondering why we don't use SecureString. The main reason is that the password value is passed back to the Git Credential Provider as a normal string. So there's no point in us using a SecureString here. It needs to be a secure string all the way down to really make a difference.

Inheritance: PromptTextBox
Show file Open project: Microsoft/Git-Credential-Manager-for-Windows Class Usage Examples

Public Properties

Property Type Description
PasswordProperty System.Windows.DependencyProperty

Private Properties

Property Type Description

Protected Methods

Method Description
OnTextChanged ( System.Windows.Controls.TextChangedEventArgs e ) : void

TextChanged event handler for secure storing of password into Visual Tree, text is replaced with pwdChar chars, clean text is kept in Text property (CLR property not snoopable without mod)

Method Details

OnTextChanged() protected method

TextChanged event handler for secure storing of password into Visual Tree, text is replaced with pwdChar chars, clean text is kept in Text property (CLR property not snoopable without mod)
protected OnTextChanged ( System.Windows.Controls.TextChangedEventArgs e ) : void
e System.Windows.Controls.TextChangedEventArgs
return void

Property Details

PasswordProperty public static property

public static DependencyProperty,System.Windows PasswordProperty
return System.Windows.DependencyProperty