Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Hide the keyboard on Entry focus event

Yusuf_AYusuf_A Member ✭✭

I want to hide the keyboard when i click on Entry
I was able to do this by set **IsReadOnly ** property to true
Now I want to launch an event when I click on **Entry **

I used this code, but I don't want to disable the control

                        <Entry x:Name="myEntry" IsEnabled="False"/>
                            <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" NumberOfTapsRequired="1">


Thank you in advance.

Best Answer


  • WorldOfBastiWorldOfBasti Member ✭✭✭
    edited August 7

    There should be a Focused Event for the Entry, but your Entry need to be in enabled state:

    <Entry x:Name="myEntry" Focused="myEntry_Clicked"/>
  • Yusuf_AYusuf_A Member ✭✭
    edited August 7

    Thank you @LeonLu this works but I can't launch focus event when I click on the entry.

Sign In or Register to comment.