private void OnKeyDownHandler(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { Passwords.Focus(); } }
public LoginPage() { InitializeComponent(); DT = (MainView)DataContext; DT.LoginM.Id = Mill.GetXaml(); if (DT.LoginM.Id == "") { Username.Focus(); } else { Passwords.Focus(); } }