一个好方法,以显示PasswordBox密码 [英] A good way to show password in PasswordBox

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

问题描述

我不知道我有一个人有什么好主意如何显示在PasswordBox的密码。
读过那可以绑定一个文本框到passwordbox但是,这不是用另一种方式来做到这一点。

I wonder i some one have any good idea how to show the password in the PasswordBox. Have read that you can bind a textbox to a passwordbox but isnt it another way to do it.

推荐答案

如果你希望你的密码是可见的,你应该使用一个文本框。一个密码箱的唯一功能是掩盖输入。它不提供额外的功能。它也可以切换你的文本框和密码框在运行时

If you want your password to be visible you should use a textbox. The only function of a password box is to mask input. It doesn't provide extra functionality. Its also possible to switch your textbox and password box at runtime

这篇关于一个好方法,以显示PasswordBox密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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