コード例 #1
0
        /// <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);
        }
コード例 #2
0
 public static void SetFocusBorderBrush(PasswordBox passwordBox, Brush value) =>
 passwordBox.SetValue(FocusBorderBrushProperty, value);
コード例 #3
0
 public static void SetCapsLockIcon(PasswordBox passwordBox, object value) =>
 passwordBox.SetValue(CapsLockIconProperty, value);
コード例 #4
0
 public static void SetIsActive(PasswordBox element, bool value)
 {
     element.SetValue(IsActiveProperty, value);
 }
コード例 #5
0
 public static void SetCapsLockIcon(PasswordBox element, object value)
 {
     element.SetValue(CapsLockIconProperty, value);
 }
コード例 #6
0
 public static void SetPassword(PasswordBox passwordBox, string value)
 {
     passwordBox.SetValue(PasswordProperty, value);
 }
コード例 #7
0
 public static void SetFocusedCaretBrush(PasswordBox passwordBox, Brush value)
 {
     passwordBox.SetValue(FocusedCaretBrushProperty, value);
 }
コード例 #8
0
 internal static void SetIsPasswordValueChanging(PasswordBox PasswordBox, bool Value)
 {
     PasswordBox.SetValue(IsPasswordValueChangingProperty, Value);
 }
コード例 #9
0
 private static void ConfigureHint(PasswordBox passwordBox)
 {
     passwordBox.SetValue(HintVisibilityProperty, passwordBox.SecurePassword.Length == 0 ? Visibility.Visible : Visibility.Hidden);
 }
コード例 #10
0
 public static void SetPasswordValue(PasswordBox PasswordBox, string Value)
 {
     PasswordBox.SetValue(PasswordValueProperty, Value);
 }
コード例 #11
0
 private static void SetPasswordValueWeakEventListener(PasswordBox PasswordBox, IWeakEventListener Value)
 {
     PasswordBox.SetValue(PasswordValueWeakEventListenerProperty, Value);
 }
コード例 #12
0
 public static void SetIsPasswordBound(PasswordBox PasswordBox, bool Value)
 {
     PasswordBox.SetValue(IsPasswordBoundProperty, Value);
 }
コード例 #13
0
 public static void SetText(PasswordBox source, string value)
 {
     source.SetValue(TextProperty, value);
 }
コード例 #14
0
        /// <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));
        }
コード例 #15
0
 internal static void SetHook(PasswordBox passwordBox, bool value)
 {
     passwordBox.SetValue(HookProperty, value);
 }
コード例 #16
0
ファイル: PassworBoxHelper.cs プロジェクト: jahruiz/Rondas
 private static void CheckShowWatermark(PasswordBox pwd)
 {
     pwd.SetValue(PasswordBoxHelper.ShowWatermarkProperty, pwd.Password == string.Empty);
 }
コード例 #17
0
 public static void SetIcon(PasswordBox passwordBox, object value)
 {
     passwordBox.SetValue(IconProperty, value);
 }
コード例 #18
0
 public static void SetHasText(PasswordBox element)
 {
     element.SetValue(HasTextProperty, element.SecurePassword.Length > 0);
 }
コード例 #19
0
 public static void SetFocusedShadowColor(PasswordBox passwordBox, Color?value)
 {
     passwordBox.SetValue(FocusedShadowColorProperty, value);
 }
コード例 #20
0
 public static void SetPasswordMonitored(PasswordBox element, bool value)
 {
     element.SetValue(PasswordMonitoredProperty, value);
 }
コード例 #21
0
 public static void SetFocusedForeground(PasswordBox passwordBox, Brush value)
 {
     passwordBox.SetValue(FocusedForegroundProperty, value);
 }
コード例 #22
0
 public static void SetWatermark(PasswordBox passwordBox, string value)
 {
     passwordBox.SetValue(WatermarkProperty, value);
 }
コード例 #23
0
 private static void SetIsPasswordEmpty(PasswordBox element)
 {
     element.SetValue(IsPasswordEmptyPropertyKey, element.SecurePassword.Length == 0);
 }
コード例 #24
0
 public static void SetCornerRadius(PasswordBox passwordBox, CornerRadius value)
 {
     passwordBox.SetValue(CornerRadiusProperty, value);
 }
コード例 #25
0
 public static void SetCapsLockWarningToolTip(PasswordBox element, object value)
 {
     element.SetValue(CapsLockWarningToolTipProperty, value);
 }
コード例 #26
0
 public static void SetCanClear(PasswordBox passwordBox, bool value)
 {
     passwordBox.SetValue(CanClearProperty, value);
 }
コード例 #27
0
 public static void SetMouseOverBorderBrush(PasswordBox passwordBox, Brush value) =>
 passwordBox.SetValue(MouseOverBorderBrushProperty, value);
コード例 #28
0
 public static void SetCanPlain(PasswordBox passwordBox, bool value)
 {
     passwordBox.SetValue(CanPlainProperty, value);
 }
コード例 #29
0
 public static void SetCapsLockWarningToolTip(PasswordBox passwordBox, object value) =>
 passwordBox.SetValue(CapsLockWarningToolTipProperty, value);
コード例 #30
0
 public static void SetConfirmTarget(this PasswordBox passBox, PasswordBox target)
 {
     passBox.SetValue(ConfirmTargetProperty, target);
 }