示例#1
0
        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 );
		}
示例#5
0
 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);
 }
示例#8
0
 public static void SetAttached(PasswordBox passwordBox, bool attached)
 {
     passwordBox.SetValue(AttachedProperty, attached);
 }
示例#9
0
 public static void SetCommandParameter( PasswordBox owner, System.Object value )
 {
     owner.SetValue( CommandParameterProperty, value );
 }
示例#10
0
 public static void SetCommand( PasswordBox owner, ICommand value )
 {
     owner.SetValue( CommandProperty, value );
 }
示例#11
0
 /// <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);
 }
示例#16
0
 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);
 }
示例#18
0
 public static void SetIsPasswordBindingEnabled(PasswordBox obj, bool value)
 {
     obj.SetValue(IsPasswordBindingEnabledProperty, value);
 }
示例#19
0
 public static void SetPassword(PasswordBox passwordBox, string password)
 {
     passwordBox.SetValue(PasswordProperty, password);
 }
示例#20
0
 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);
 }