C# Class Telerik.TestStudio.Jira.BugTracking.PasswordBoxAssistant

Since the .NET PasswordBox does not give you a DependencyProperty for the password (encrypted or not) we'll extend it to add our own.
Afficher le fichier Open project: TestStudio/JiraPlugin

Méthodes publiques

Свойство Type Description
BindPassword System.Windows.DependencyProperty
BoundPassword System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
GetBindPassword ( DependencyObject dp ) : bool
GetBoundPassword ( DependencyObject dp ) : string
SetBindPassword ( DependencyObject dp, bool value ) : void
SetBoundPassword ( DependencyObject dp, Base64String value ) : void

Private Methods

Méthode Description
GetUpdatingPassword ( DependencyObject dp ) : bool
HandlePasswordChanged ( object sender, RoutedEventArgs e ) : void

Called when the value of the PasswordBox is changed in the UI. We'll update the bound property with the updated password value. This triggers the OnBoundPasswordChanged event handler.

OnBindPasswordChanged ( DependencyObject dp, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when what the PasswordBox is bound to is changed, generally during UI initialization. We'll change our event listeners for the new PasswordBox.

OnBoundPasswordChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when the value of the property the PasswordBox is bound to changes. We'll update the bound property with the updated password value, unless we're already in the middle of updating it because the user changed it in the UI.

SetUpdatingPassword ( DependencyObject dp, bool value ) : void

Method Details

GetBindPassword() public static méthode

public static GetBindPassword ( DependencyObject dp ) : bool
dp System.Windows.DependencyObject
Résultat bool

GetBoundPassword() public static méthode

public static GetBoundPassword ( DependencyObject dp ) : string
dp System.Windows.DependencyObject
Résultat string

SetBindPassword() public static méthode

public static SetBindPassword ( DependencyObject dp, bool value ) : void
dp System.Windows.DependencyObject
value bool
Résultat void

SetBoundPassword() public static méthode

public static SetBoundPassword ( DependencyObject dp, Base64String value ) : void
dp System.Windows.DependencyObject
value Base64String
Résultat void

Property Details

BindPassword public_oe static_oe property

public static DependencyProperty,System.Windows BindPassword
Résultat System.Windows.DependencyProperty

BoundPassword public_oe static_oe property

public static DependencyProperty,System.Windows BoundPassword
Résultat System.Windows.DependencyProperty