C# how to get text value from PasswordBox?
I have a PasswordBox . how can I get the input value from the PasswordBox after the input has been finished? You can get it from the Password property. Death Zone You may extract it from Password property: passwordBox.Password.ToString() If using a MaskedTextbox you can use the .text property. For example: private void btnOk_Click(object sender, EventArgs e) { if ( myMaskedTextbox.Text.Equals(PASSWORD) ) { //do something } } I use below code to get the length of PasswordBox PasswordVariableName.Password.Length It will certainly work on wp8 jiciftw You may not want to store the password in