PasswordBox控件,但没有Text属性如何从PasswordBox控件中检索值。这样我就可以在PasswordBox中获取原始文本 [英] PasswordBox Control but the is no Text property how to retrive value from the PasswordBox control. So that i can get the orginal text in the PasswordBox

查看:315
本文介绍了PasswordBox控件,但没有Text属性如何从PasswordBox控件中检索值。这样我就可以在PasswordBox中获取原始文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想从PasswordBox控件中检索值,但是没有Text属性如何从PasswordBox控件中检索值。所以我可以在PasswordBox中获取原始文本

Hi,

I want to retrive the value from the PasswordBox Control but the is no Text property how to retrive value from the PasswordBox control. So that i can get the orginal text in the PasswordBox

推荐答案

这是直接来自Microsoft网站:



http://msdn.microsoft.com/en-us/library/ system.windows.controls.passwordbox.aspx [ ^ ]



PasswordBox有一个安全字符串的密码属性。



研究如何处理SecureString。
This is direct from the Microsoft Website:

http://msdn.microsoft.com/en-us/library/system.windows.controls.passwordbox.aspx[^]

The PasswordBox has a Password property that is a secure string.

Research how to process a SecureString.


Google是你的朋友:好好经常拜访他。他可以比在这里发布问题更快地回答问题...



在PasswordBox类上快速搜索MSDN:http://msdn.microsoft.com/en-us/library/system.windows.controls.passwordbox.aspx [ ^ ]显示属性,包括Password属性。

它还提供了使用它的教程: http: //wpftutorial.net/PasswordBox.html [ ^ ]



将来,请尝试自己做至少基础研究,不要浪费你的时间或我们的时间。
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search MSDN on the PasswordBox class: http://msdn.microsoft.com/en-us/library/system.windows.controls.passwordbox.aspx[^] which shows the properties, including the Password property.
And it also gives a tutorial on using it: http://wpftutorial.net/PasswordBox.html[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.


这篇关于PasswordBox控件,但没有Text属性如何从PasswordBox控件中检索值。这样我就可以在PasswordBox中获取原始文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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