Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way with Xamarin.Forms to detect the software keyboard in my iOS app?

I have a Xamarin.Forms application with a login screen. I have added code to move the controls out of the way, when one of the Entry fields gets focus. I move the views back down in the Unfocus event handlers. In the simulator I can prevent the software keyboard from popping up. Unfortunately my event handlers still move the view up and down even without the keyboard.

Is there a way to detect the keyboard's appearance in Xamarin.Forms, while in the event handlers on the ContentPage?

like image 251
Blanthor Avatar asked Dec 11 '25 00:12

Blanthor


1 Answers

I don't think there is support for this out of the box and thus I'd go with DependencyService and implement it by myself.

like image 64
Miha Markic Avatar answered Dec 12 '25 13:12

Miha Markic