Hi, how I can hide the overlay keyboard from appearing after set the focus oin the NumericInput.
For now I try with Depedency on cross platform without success
RadNumericInput ntb = Qte
as
RadNumericInput;
if
(ntb !=
null
)
{
ntb.Focus();
var key = Xamarin.Forms.DependencyService.Get<IForceKeyboardDismissalService>();
key.DismissKeyboard();
}
then on droid:
[assembly: Xamarin.Forms.Dependency(
typeof
(AndroidForceKeyboardDismissalService))]
namespace
KelvinMobile.Droid
{
public
class
AndroidForceKeyboardDismissalService : IForceKeyboardDismissalService
{
public
void
DismissKeyboard()
{
InputMethodManager imm = InputMethodManager.FromContext(CrossCurrentActivity.Current.Activity.ApplicationContext);
imm.HideSoftInputFromWindow(CrossCurrentActivity.Current.Activity.Window.DecorView.WindowToken, HideSoftInputFlags.NotAlways);
}
}
}
The call work, but the keyboard still there...