showing password characters on some event for passwordbox

后端 未结 4 1932
醉酒成梦
醉酒成梦 2020-12-02 00:50

I am developing a windows phone application.In that i ask the user to login.

On the login page the user has to enter password.

Now what I want is that i give

4条回答
  •  悲哀的现实
    2020-12-02 01:25

    You could create your own control that inherits from textbox however after each character you replace it with an *, storing the true value within a private variable on the page. Using a checkbox you can then toggle whether the value in the textbox shows the true value or the * value.

    It's not an elegant solution nor is it a best practice, however I think it's still an alternative if you are willing to live with it.

提交回复
热议问题