private static pwReturnCommandBehavior GetOrCreateBehavior(PasswordBox pwBox) { pwReturnCommandBehavior behavior = pwBox.GetValue(pwReturnCommandBehaviorProperty) as pwReturnCommandBehavior; if (behavior == null) { behavior = new pwReturnCommandBehavior(pwBox); pwBox.SetValue(pwReturnCommandBehaviorProperty, behavior); } return behavior; }
public static void SetCapsLockWarningToolTip(PasswordBox element, object value) { element.SetValue(CapsLockWarningToolTipProperty, value); }
public static void SetCapsLockIcon(PasswordBox element, object value) { element.SetValue(CapsLockIconProperty, value); }
public static void SetPasswordCueBanner( PasswordBox owner, Object value ) { owner.SetValue( PasswordCueBannerProperty, value ); }
public static void SetDynamicPasswordBox(PasswordBox textBox, bool value) { textBox.SetValue(DynamicPasswordBoxProperty, value); }
public static void SetPasswordValue(PasswordBox PasswordBox, string Value) { PasswordBox.SetValue(PasswordValueProperty, Value); }
private static void ConfigureHint(PasswordBox passwordBox) { passwordBox.SetValue(HintVisibilityProperty, passwordBox.SecurePassword.Length == 0 ? Visibility.Visible : Visibility.Hidden); }
public static void SetAttached(PasswordBox passwordBox, bool attached) { passwordBox.SetValue(AttachedProperty, attached); }
public static void SetCommandParameter( PasswordBox owner, System.Object value ) { owner.SetValue( CommandParameterProperty, value ); }
public static void SetCommand( PasswordBox owner, ICommand value ) { owner.SetValue( CommandProperty, value ); }
/// <summary> /// Sets the password text. /// </summary> /// <param name="passwordBox">The password box.</param> /// <param name="value">The password value.</param> public static void SetText( PasswordBox passwordBox, string value ) { passwordBox.SetValue( TextProperty, value ); }
public static void SetEnableBinding(PasswordBox target, bool value) { target.SetValue(PasswordBoxBindingBehavior.EnableBindingProperty, value); }
public static void SetBoundPassword(PasswordBox target, string value) { target.SetValue(BoundPasswordProperty, value); }
private static void SetPasswordValueWeakEventListener(PasswordBox PasswordBox, IWeakEventListener Value) { PasswordBox.SetValue(PasswordValueWeakEventListenerProperty, Value); }
internal static void SetIsPasswordValueChanging(PasswordBox PasswordBox, bool Value) { PasswordBox.SetValue(IsPasswordValueChangingProperty, Value); }
public static void SetCommand(PasswordBox pwBox, ICommand command) { pwBox.SetValue(CommandProperty, command); }
private static void CheckShowWatermark(PasswordBox pwd) { pwd.SetValue(PasswordBoxHelper.ShowWatermarkProperty, pwd.Password == string.Empty); }
public static void SetIsPasswordBindingEnabled(PasswordBox obj, bool value) { obj.SetValue(IsPasswordBindingEnabledProperty, value); }
public static void SetPassword(PasswordBox passwordBox, string password) { passwordBox.SetValue(PasswordProperty, password); }
public static void SetPassword(PasswordBox obj, SecureString value) { obj.SetValue(PasswordProperty, value); }
public static void SetUpdatePasswordBoxOnKeyPress(PasswordBox element, UpdatePasswordBoxOnKeyPress value) { element.SetValue(UpdatePasswordBoxOnKeyPressProperty, value); }
public static void SetIsPasswordBound(PasswordBox PasswordBox, bool Value) { PasswordBox.SetValue(IsPasswordBoundProperty, Value); }