VistaPrompt credentials extraction

Mar 10 at 6:57 AM
It would appear that the password value is not being extractred from the dialog correctly. I don't get the correct password value from this. How do you get the password value that they typed in?
            CredentialManagement.VistaPrompt p = new CredentialManagement.VistaPrompt();
            p.ShowDialog();
            System.Windows.MessageBox.Show(string.Format("Credentials: {0}/{1}@{2}", p.Username, p.Password, p.Domain));
Mar 10 at 7:03 AM
Answering my own question for anyone else that may have that question.

You have to set the GenericCredentials property to true. The following snippet returns the password correctly:
            CredentialManagement.VistaPrompt p = new CredentialManagement.VistaPrompt();
            p.GenericCredentials = true;
            p.ShowDialog();
            System.Windows.MessageBox.Show(string.Format("Credentials: {0}/{1}@{2}", p.Username, p.Password, p.Domain));