当前位置: 首页>>代码示例>>C#>>正文


C# PasswordBox.SetValue方法代码示例

本文整理汇总了C#中System.Windows.Controls.PasswordBox.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# PasswordBox.SetValue方法的具体用法?C# PasswordBox.SetValue怎么用?C# PasswordBox.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Controls.PasswordBox的用法示例。


在下文中一共展示了PasswordBox.SetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetOrCreateBehavior

        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;
        }
开发者ID:JohnDMathis,项目名称:Pippin,代码行数:11,代码来源:pwReturnKey.cs

示例2: SetCapsLockWarningToolTip

 public static void SetCapsLockWarningToolTip(PasswordBox element, object value)
 {
     element.SetValue(CapsLockWarningToolTipProperty, value);
 }
开发者ID:gjhwssg,项目名称:MahApps.Metro,代码行数:4,代码来源:PasswordBoxHelper.cs

示例3: SetCapsLockIcon

 public static void SetCapsLockIcon(PasswordBox element, object value)
 {
     element.SetValue(CapsLockIconProperty, value);
 }
开发者ID:gjhwssg,项目名称:MahApps.Metro,代码行数:4,代码来源:PasswordBoxHelper.cs

示例4: SetPasswordCueBanner

		public static void SetPasswordCueBanner( PasswordBox owner, Object value )
		{
			owner.SetValue( PasswordCueBannerProperty, value );
		}
开发者ID:micdenny,项目名称:Radical.Windows,代码行数:4,代码来源:CueBannerService.cs

示例5: SetDynamicPasswordBox

 public static void SetDynamicPasswordBox(PasswordBox textBox, bool value)
 {
     textBox.SetValue(DynamicPasswordBoxProperty, value);
 }
开发者ID:QRyptoWire,项目名称:qrypto-wire,代码行数:4,代码来源:Helpers.cs

示例6: SetPasswordValue

 public static void SetPasswordValue(PasswordBox PasswordBox, string Value)
 {
     PasswordBox.SetValue(PasswordValueProperty, Value);
 }
开发者ID:ptownsend1984,项目名称:SampleApplications,代码行数:4,代码来源:ControlExtensions.cs

示例7: ConfigureHint

 private static void ConfigureHint(PasswordBox passwordBox)
 {
     passwordBox.SetValue(HintVisibilityProperty, passwordBox.SecurePassword.Length == 0 ? Visibility.Visible : Visibility.Hidden);
 }
开发者ID:x01673,项目名称:MaterialDesignInXamlToolkit,代码行数:4,代码来源:PasswordFieldAssist.cs

示例8: SetAttached

 public static void SetAttached(PasswordBox passwordBox, bool attached)
 {
     passwordBox.SetValue(AttachedProperty, attached);
 }
开发者ID:CarlosVV,项目名称:mediavf,代码行数:4,代码来源:PasswordService.cs

示例9: SetCommandParameter

 public static void SetCommandParameter( PasswordBox owner, System.Object value )
 {
     owner.SetValue( CommandParameterProperty, value );
 }
开发者ID:micdenny,项目名称:Radical.Windows,代码行数:4,代码来源:Password.cs

示例10: SetCommand

 public static void SetCommand( PasswordBox owner, ICommand value )
 {
     owner.SetValue( CommandProperty, value );
 }
开发者ID:micdenny,项目名称:Radical.Windows,代码行数:4,代码来源:Password.cs

示例11: SetText

 /// <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 );
 }
开发者ID:micdenny,项目名称:Radical.Windows,代码行数:9,代码来源:Password.cs

示例12: SetEnableBinding

 public static void SetEnableBinding(PasswordBox target, bool value)
 {
     target.SetValue(PasswordBoxBindingBehavior.EnableBindingProperty, value);
 }
开发者ID:Graungaard,项目名称:Programmering3,代码行数:4,代码来源:PasswordBoxBindingBehavior.cs

示例13: SetBoundPassword

 public static void SetBoundPassword(PasswordBox target, string value)
 {
     target.SetValue(BoundPasswordProperty, value);
 }
开发者ID:Graungaard,项目名称:Programmering3,代码行数:4,代码来源:PasswordBoxBindingBehavior.cs

示例14: SetPasswordValueWeakEventListener

 private static void SetPasswordValueWeakEventListener(PasswordBox PasswordBox, IWeakEventListener Value)
 {
     PasswordBox.SetValue(PasswordValueWeakEventListenerProperty, Value);
 }
开发者ID:ptownsend1984,项目名称:SampleApplications,代码行数:4,代码来源:ControlExtensions.cs

示例15: SetIsPasswordValueChanging

 internal static void SetIsPasswordValueChanging(PasswordBox PasswordBox, bool Value)
 {
     PasswordBox.SetValue(IsPasswordValueChangingProperty, Value);
 }
开发者ID:ptownsend1984,项目名称:SampleApplications,代码行数:4,代码来源:ControlExtensions.cs


注:本文中的System.Windows.Controls.PasswordBox.SetValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。