private void PasswordBoxKeyUp(object sender, KeyRoutedEventArgs e) { if (Helper.IsEnterKey(e)) { VendorSearch.Focus(FocusState.Programmatic); } }