Does anyone know how to use the PasswordTextBox in a way that allows me to detect what is entered?

I am rather unsure what code to use. I, as of currently am trying to make it so once the user inputs a password it would launch another screen where everything is

Whatever is entered into a password textbox is available as text with

image