async void TD_Tapped(object sender, System.EventArgs e) { #if __IOS__ DependencyService.Get <IForceKeyboardDismissalService>().DismissKeyboard(); #endif var result = await UserDialogs.Instance.ActionSheetAsync("Numero de socio Win", "CANCELAR", null, null, "DNI", "LE", "LC", "CI"); if (result != "CANCELAR") { TipoDocumento.Text = result.ToString(); TipoDocumento.Unfocus(); DependencyService.Get <IForceKeyboardDismissalService>().DismissKeyboard(); } else { TipoDocumento.Unfocus(); DependencyService.Get <IForceKeyboardDismissalService>().DismissKeyboard(); } }
async void Handle_Focused(object sender, Xamarin.Forms.FocusEventArgs e) { #if __IOS__ DependencyService.Get <IForceKeyboardDismissalService>().DismissKeyboard(); #endif var result = await UserDialogs.Instance.ActionSheetAsync("Tipo Documento", "CANCELAR", null, null, "DNI", "LE", "LC", "CI"); if (result != "CANCELAR") { TipoDocumento.Text = result.ToString(); TipoDocumento.Unfocus(); DependencyService.Get <IForceKeyboardDismissalService>().DismissKeyboard(); } else { TipoDocumento.Unfocus(); DependencyService.Get <IForceKeyboardDismissalService>().DismissKeyboard(); } }