C# Класс 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.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
BindPassword System.Windows.DependencyProperty
BoundPassword System.Windows.DependencyProperty

Открытые методы

Метод Описание
GetBindPassword ( DependencyObject dp ) : bool
GetBoundPassword ( DependencyObject dp ) : string
SetBindPassword ( DependencyObject dp, bool value ) : void
SetBoundPassword ( DependencyObject dp, Base64String value ) : void

Приватные методы

Метод Описание
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

Описание методов

GetBindPassword() публичный статический Метод

public static GetBindPassword ( DependencyObject dp ) : bool
dp System.Windows.DependencyObject
Результат bool

GetBoundPassword() публичный статический Метод

public static GetBoundPassword ( DependencyObject dp ) : string
dp System.Windows.DependencyObject
Результат string

SetBindPassword() публичный статический Метод

public static SetBindPassword ( DependencyObject dp, bool value ) : void
dp System.Windows.DependencyObject
value bool
Результат void

SetBoundPassword() публичный статический Метод

public static SetBoundPassword ( DependencyObject dp, Base64String value ) : void
dp System.Windows.DependencyObject
value Base64String
Результат void

Описание свойств

BindPassword публичное статическое свойство

public static DependencyProperty,System.Windows BindPassword
Результат System.Windows.DependencyProperty

BoundPassword публичное статическое свойство

public static DependencyProperty,System.Windows BoundPassword
Результат System.Windows.DependencyProperty