public static class LoginPasswordBoxHelper
{
private static bool _isUpdatingPassword = false;
public static string GetPassword(DependencyObject obj)
{
return (string)obj.GetValue(PasswordProperty);
}
public static void SetPassword(DependencyObject obj, string value)
{
obj.SetValue(PasswordProperty, value);
}
public static readonly DependencyProperty PasswordProperty =
DependencyProperty.RegisterAttached("Password", typeof(string), typeof(LoginPasswordBoxHelper),
new PropertyMetadata(string.Empty, OnPasswordPropertyChanged));
public static bool GetIsPasswordBindingEnable(DependencyObject obj)
{
return (bool)obj.GetValue(IsPasswordBindingEnableProperty);
}
public static void SetIsPasswordBindingEnable(DependencyObject obj, bool value)
{
obj.SetValue(IsPasswordBindingEnableProperty, value);
}
public static
使用附加属性 实现wpf中的passwordBox 的明文/密文密码切换
最新推荐文章于 2024-11-16 18:18:53 发布

最低0.47元/天 解锁文章
3208

被折叠的 条评论
为什么被折叠?



