private void txtPassword_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { btnLogin_Click(sender, e); } }