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; }
// 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); } }
/// <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); } } }
public static object GetCapsLockWarningToolTip(PasswordBox element) { return element.GetValue(CapsLockWarningToolTipProperty); }
public static ICommand GetCommand(PasswordBox pwBox) { return pwBox.GetValue(CommandProperty) as ICommand; }
public static Object GetPasswordCueBanner( PasswordBox owner ) { return ( Object )owner.GetValue( PasswordCueBannerProperty ); }
public static object GetCapsLockIcon(PasswordBox element) { return element.GetValue(CapsLockIconProperty); }
public static string GetPasswordValue(PasswordBox PasswordBox) { return (string)PasswordBox.GetValue(PasswordValueProperty); }
public static bool GetDynamicPasswordBox(PasswordBox textBox) { return (bool)textBox.GetValue(DynamicPasswordBoxProperty); }
public static bool GetAttached(PasswordBox passwordBox) { return (bool)passwordBox.GetValue(AttachedProperty); }
public static UpdatePasswordBoxOnKeyPress GetUpdatePasswordBoxOnKeyPress(PasswordBox element) { return (UpdatePasswordBoxOnKeyPress)element.GetValue(UpdatePasswordBoxOnKeyPressProperty); }
public static ICommand GetCommand( PasswordBox owner ) { return ( ICommand )owner.GetValue( CommandProperty ); }
public static System.Object GetCommandParameter( PasswordBox owner ) { return ( System.Object )owner.GetValue( CommandParameterProperty ); }
/// <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); }
public static string GetPassword(PasswordBox passwordBox) { return (string)passwordBox.GetValue(PasswordProperty); }
public static bool GetIsPasswordBindingEnabled(PasswordBox obj) { return (bool)obj.GetValue(IsPasswordBindingEnabledProperty); }
public static SecureString GetPassword(PasswordBox obj) { return (SecureString)obj.GetValue(PasswordProperty); }
public static bool GetIsPasswordBound(PasswordBox PasswordBox) { return (bool)PasswordBox.GetValue(IsPasswordBoundProperty); }