private void ConfirmButton_Click(object sender, RoutedEventArgs e) { if (MobileBox.Text.Length == 11 && TryCheckMobileNOBoxValidation(MobileBox.Text)) { TransactionInfo.TopupRequest.Mobile = MobileBox.Text; TransactionInfo.GoToPage(Pages.ConfirmPaymentPage); } else { LabelMessage.Content = "شماره موبایل وارد شده صحیح نمی باشد"; MobileBox.Focus(); } }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { MobileBox.Focus(); }