Probably not so understood this event, but it will be called every time we enter something in the textBox? Did so and no reaction. Tell me how to make your plans?
private void Password_TextInput(object sender, TextCompositionEventArgs e) { if (Login.Text != "admin" && Password.Password != "123456") { Information.Content = "Неверный логин или пароль!"; } }
The event is bolted to all 2 textboxa, if that.