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


C# PasswordBox.GetValue方法代码示例

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


在下文中一共展示了PasswordBox.GetValue方法的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: GetCommand

 public static ICommand GetCommand(PasswordBox pwBox)
 {
     return pwBox.GetValue(CommandProperty) as ICommand;
 }
开发者ID:JohnDMathis,项目名称:Pippin,代码行数:4,代码来源:pwReturnKey.cs

示例3: GetCapsLockWarningToolTip

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

示例4: GetCapsLockIcon

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

示例5: GetPasswordCueBanner

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

示例6: GetDynamicPasswordBox

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

示例7: GetPasswordValue

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

示例8: GetPassword

 public static string GetPassword(PasswordBox passwordBox)
 {
     return (string)passwordBox.GetValue(PasswordProperty);
 }
开发者ID:CarlosVV,项目名称:mediavf,代码行数:4,代码来源:PasswordService.cs

示例9: GetCommandParameter

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

示例10: GetCommand

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

示例11: GetText

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

示例12: GetEnableBinding

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

示例13: GetBoundPassword

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

示例14: GetPasswordValueWeakEventListener

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

示例15: GetIsPasswordValueChanging

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


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