Exemplo n.º 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;
        }
Exemplo n.º 2
0
        // Token: 0x0600535B RID: 21339 RVA: 0x00172B50 File Offset: 0x00170D50
        private static void OnPaddingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PasswordBox passwordBox = (PasswordBox)d;

            if (passwordBox.ScrollViewer != null)
            {
                object value = passwordBox.GetValue(Control.PaddingProperty);
                if (value is Thickness)
                {
                    passwordBox.ScrollViewer.Padding = (Thickness)value;
                    return;
                }
                passwordBox.ScrollViewer.ClearValue(Control.PaddingProperty);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Callback for TextBox.Padding property setting
        /// </summary>
        /// <param name="d">
        /// TextBoxBase on which the property is changed
        /// </param>
        /// <param name="e">event args</param>
        private static void OnPaddingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PasswordBox passwordBox = (PasswordBox)d;

            if (passwordBox.ScrollViewer != null)
            {
                // translate this change into inner property set on ScrollViewer
                object padding = passwordBox.GetValue(Control.PaddingProperty);
                if (padding is Thickness)
                {
                    passwordBox.ScrollViewer.Padding = (Thickness)padding;
                }
                else
                {
                    passwordBox.ScrollViewer.ClearValue(Control.PaddingProperty);
                }
            }
        }
Exemplo n.º 4
0
 public static object GetCapsLockWarningToolTip(PasswordBox element)
 {
     return element.GetValue(CapsLockWarningToolTipProperty);
 }
Exemplo n.º 5
0
 public static ICommand GetCommand(PasswordBox pwBox)
 {
     return pwBox.GetValue(CommandProperty) as ICommand;
 }
Exemplo n.º 6
0
		public static Object GetPasswordCueBanner( PasswordBox owner )
		{
			return ( Object )owner.GetValue( PasswordCueBannerProperty );
		}
Exemplo n.º 7
0
 public static object GetCapsLockIcon(PasswordBox element)
 {
     return element.GetValue(CapsLockIconProperty);
 }
 public static string GetPasswordValue(PasswordBox PasswordBox)
 {
     return (string)PasswordBox.GetValue(PasswordValueProperty);
 }
Exemplo n.º 9
0
 public static bool GetDynamicPasswordBox(PasswordBox textBox)
 {
     return (bool)textBox.GetValue(DynamicPasswordBoxProperty);
 }
Exemplo n.º 10
0
 public static bool GetAttached(PasswordBox passwordBox)
 {
     return (bool)passwordBox.GetValue(AttachedProperty);
 }
Exemplo n.º 11
0
 public static UpdatePasswordBoxOnKeyPress GetUpdatePasswordBoxOnKeyPress(PasswordBox element) { return (UpdatePasswordBoxOnKeyPress)element.GetValue(UpdatePasswordBoxOnKeyPressProperty); }
Exemplo n.º 12
0
 public static ICommand GetCommand( PasswordBox owner )
 {
     return ( ICommand )owner.GetValue( CommandProperty );
 }
Exemplo n.º 13
0
 public static System.Object GetCommandParameter( PasswordBox owner )
 {
     return ( System.Object )owner.GetValue( CommandParameterProperty );
 }
Exemplo n.º 14
0
 /// <summary>
 /// Gets the password text.
 /// </summary>
 /// <param name="passwordBox">The password box.</param>
 /// <returns>The password value.</returns>
 public static string GetText( PasswordBox passwordBox )
 {
     return ( string )passwordBox.GetValue( TextProperty );
 }
 public static bool GetEnableBinding(PasswordBox target)
 {
     return (bool)target.GetValue(EnableBindingProperty);
 }
 public static string GetBoundPassword(PasswordBox target)
 {
     return (string)target.GetValue(BoundPasswordProperty);
 }
 private static IWeakEventListener GetPasswordValueWeakEventListener(PasswordBox PasswordBox)
 {
     return (IWeakEventListener)PasswordBox.GetValue(PasswordValueWeakEventListenerProperty);
 }
 internal static bool GetIsPasswordValueChanging(PasswordBox PasswordBox)
 {
     return (bool)PasswordBox.GetValue(IsPasswordValueChangingProperty);
 }
Exemplo n.º 19
0
 public static string GetPassword(PasswordBox passwordBox)
 {
     return (string)passwordBox.GetValue(PasswordProperty);
 }
Exemplo n.º 20
0
 public static bool GetIsPasswordBindingEnabled(PasswordBox obj)
 {
     return (bool)obj.GetValue(IsPasswordBindingEnabledProperty);
 }
Exemplo n.º 21
0
 public static SecureString GetPassword(PasswordBox obj)
 {
     return (SecureString)obj.GetValue(PasswordProperty);
 }
 public static bool GetIsPasswordBound(PasswordBox PasswordBox)
 {
     return (bool)PasswordBox.GetValue(IsPasswordBoundProperty);
 }