密码框显示字符
如果passwordchar是x,那么用户输入的密码将更改为xxxxxx,当用户选择某些复选框“showpassword”时,有没有办法按原样显示该密码而不是passwordchars?或基于某些事件?
If passwordchar is x, then user entered password will be changed to xxxxxx, is there a way to show this password as it is instead of passwordchars, when user selects some checkbox "showpassword" ? or based on some event?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须自己处理此问题,方法是将密码框替换为绑定到同一属性的文本框。创建自定义控件来处理交互和状态更改可能是有意义的。
You would have to handle this yourself by swapping the PasswordBox for a TextBox bound to the same property. It would probably make sense to create a custom control to handle the interactions and state changes.
这段代码可能对你有帮助
This code may help you