public Login() { InitializeComponent(); NotificationToAlarm = new GenericInteractionRequest<AlarmInfo>(); DataContext = new LoginViewModel(); PwdBox.KeyDown += (sender, e) => { if (e.Key == Key.Enter)logBtn_Click(null, null); }; }
/// <summary> /// Default constructor. /// </summary> public PwdLostFoucus(LoginViewModel viewModel) { m_ViewModel = viewModel; }