I want, when we entered the password (correct), we stomped on, and if not the correct Label became visible. It would say: "The password is incorrect." On Windows Forms, everything was easier. I entered the password through the code, and then compared it with the written one ...
How to do it on WPF?
On WindowsForms, I did it like this:
string a = "123"; if (textBox1.Text == a) {
}
Name="TextBox1"and then call it by that name - Andrey NOP