I have a PasswordBox
. how can I get the input value from the PasswordBox
after the input has been finished?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
I use below code to get the length of PasswordBox
It will certainly work on wp8
You may extract it from
Password
property:You can get it from the
Password
property.If using a MaskedTextbox you can use the .text property. For example:
You may not want to store the password in clear text in memory, from the msdn doc you should use SecurePassword in order to prevent that.
Example:
SecureString myPass = passwordBox.SecurePassword
https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.passwordbox.securepassword