/// <summary> /// Sets the attached secure string password for the specified <see cref="PasswordBox"/>. /// </summary> /// <param name="passwordBox">The <see cref="PasswordBox"/> for which to set the attached secure string password.</param> /// <param name="value">A secure string representing the attached password for the <paramref name="passwordBox"/>.</param> public static void SetSecurePassword(PasswordBox passwordBox, SecureString value) { Requires.NotNull(passwordBox, nameof(passwordBox)); passwordBox.SetValue(SecurePasswordProperty, value); }
public static void SetFocusBorderBrush(PasswordBox passwordBox, Brush value) => passwordBox.SetValue(FocusBorderBrushProperty, value);
public static void SetCapsLockIcon(PasswordBox passwordBox, object value) => passwordBox.SetValue(CapsLockIconProperty, value);
public static void SetIsActive(PasswordBox element, bool value) { element.SetValue(IsActiveProperty, value); }
public static void SetCapsLockIcon(PasswordBox element, object value) { element.SetValue(CapsLockIconProperty, value); }
public static void SetPassword(PasswordBox passwordBox, string value) { passwordBox.SetValue(PasswordProperty, value); }
public static void SetFocusedCaretBrush(PasswordBox passwordBox, Brush value) { passwordBox.SetValue(FocusedCaretBrushProperty, value); }
internal static void SetIsPasswordValueChanging(PasswordBox PasswordBox, bool Value) { PasswordBox.SetValue(IsPasswordValueChangingProperty, Value); }
private static void ConfigureHint(PasswordBox passwordBox) { passwordBox.SetValue(HintVisibilityProperty, passwordBox.SecurePassword.Length == 0 ? Visibility.Visible : Visibility.Hidden); }
public static void SetPasswordValue(PasswordBox PasswordBox, string Value) { PasswordBox.SetValue(PasswordValueProperty, Value); }
private static void SetPasswordValueWeakEventListener(PasswordBox PasswordBox, IWeakEventListener Value) { PasswordBox.SetValue(PasswordValueWeakEventListenerProperty, Value); }
public static void SetIsPasswordBound(PasswordBox PasswordBox, bool Value) { PasswordBox.SetValue(IsPasswordBoundProperty, Value); }
public static void SetText(PasswordBox source, string value) { source.SetValue(TextProperty, value); }
/// <summary> /// Sets a value indicating whether to select all contents in the specified <see cref="PasswordBox"/> when it receives focus. /// </summary> /// <param name="passwordBox">The <see cref="PasswordBox"/> for which to set whether to select all contents when focus is got.</param> /// <param name="value"><c>true</c> if to select all contents for the <paramref name="passwordBox"/> when focus is got; otherwise, <c>false</c>.</param> public static void SetSelectAllOnGotFocus(PasswordBox passwordBox, bool value) { Requires.NotNull(passwordBox, nameof(passwordBox)); passwordBox.SetValue(SelectAllOnGotFocusProperty, BooleanBox.FromValue(value)); }
internal static void SetHook(PasswordBox passwordBox, bool value) { passwordBox.SetValue(HookProperty, value); }
private static void CheckShowWatermark(PasswordBox pwd) { pwd.SetValue(PasswordBoxHelper.ShowWatermarkProperty, pwd.Password == string.Empty); }
public static void SetIcon(PasswordBox passwordBox, object value) { passwordBox.SetValue(IconProperty, value); }
public static void SetHasText(PasswordBox element) { element.SetValue(HasTextProperty, element.SecurePassword.Length > 0); }
public static void SetFocusedShadowColor(PasswordBox passwordBox, Color?value) { passwordBox.SetValue(FocusedShadowColorProperty, value); }
public static void SetPasswordMonitored(PasswordBox element, bool value) { element.SetValue(PasswordMonitoredProperty, value); }
public static void SetFocusedForeground(PasswordBox passwordBox, Brush value) { passwordBox.SetValue(FocusedForegroundProperty, value); }
public static void SetWatermark(PasswordBox passwordBox, string value) { passwordBox.SetValue(WatermarkProperty, value); }
private static void SetIsPasswordEmpty(PasswordBox element) { element.SetValue(IsPasswordEmptyPropertyKey, element.SecurePassword.Length == 0); }
public static void SetCornerRadius(PasswordBox passwordBox, CornerRadius value) { passwordBox.SetValue(CornerRadiusProperty, value); }
public static void SetCapsLockWarningToolTip(PasswordBox element, object value) { element.SetValue(CapsLockWarningToolTipProperty, value); }
public static void SetCanClear(PasswordBox passwordBox, bool value) { passwordBox.SetValue(CanClearProperty, value); }
public static void SetMouseOverBorderBrush(PasswordBox passwordBox, Brush value) => passwordBox.SetValue(MouseOverBorderBrushProperty, value);
public static void SetCanPlain(PasswordBox passwordBox, bool value) { passwordBox.SetValue(CanPlainProperty, value); }
public static void SetCapsLockWarningToolTip(PasswordBox passwordBox, object value) => passwordBox.SetValue(CapsLockWarningToolTipProperty, value);
public static void SetConfirmTarget(this PasswordBox passBox, PasswordBox target) { passBox.SetValue(ConfirmTargetProperty, target); }