Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Disable auto hide keyboard in Forms

$
0
0

Hello to all

So I've been having this issue lately where I'm stuck on how to disable the auto hiding of keyboard in a Form Page. What I want to achieve is that I have some Buttons next to an Entry which I would like it to be some sort of "sibling inputs" with the entry, that is, I don't want the keyboard to dismiss upon user pressing one of those Buttons.

I see that in the PageRenderer from assembly, the page uses a UIGestureRecognizer to send from MessagingCenter a "Xamarin.ResignFirstResponder" message. But the sender of that is always a PageRenderer, and I can't seem to get to know which part of the page specifically is tapped.

One way I can think of is to add a UITapGestureRecognizer onto those buttons, and use CancelTouchesInView to stop the event bubbling, but I can't figure out a correct place to add those recognizers. Any idea? Thanks in advance!


Viewing all articles
Browse latest Browse all 58056

Trending Articles