绑定到密码框 [英] Binding to a PasswordBox

查看:114
本文介绍了绑定到密码框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


通常,当我使用密码框并且安全性不是问题时,我只需使用附加属性即可从我的视图模型绑定到密码属性.这次我必须考虑安全性,因此我必须找到一个新的解决方案.我想知道我是否使用附加属性访问PasswordBox的SecurePassword属性-仍然会导致安全问题.

Uros

Hi
Usually, when I used the password box and the security was not an issue, I simly used the attached property to bind to password property from my view model. This time I have to take the security into account, so I have to find a new solution. I was wondering if I used the attached property to access the SecurePassword property of the PasswordBox - would that still cause a security problem.

Uros

推荐答案

由于密码框没有可用的绑定,因此附加属性是唯一的选择.
Since there is no binding available for password boxes, attached properties are the only choice.


这篇关于绑定到密码框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆