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

Click event for entry in Disable state?

$
0
0

Hi all,

how to add a click event for entry in disable state?

I tried with gesture recognizer like below:

      <Entry
                TextColor="Black"
                x:Name="phone">
            <Entry.GestureRecognizers>
                <TapGestureRecognizer
                    Tapped="StartCall"
                    NumberOfTapsRequired="1">
                </TapGestureRecognizer>
            </Entry.GestureRecognizers> 
        </Entry>

void StartCall(object sender,EventArgs args)
        {
            DisplayAlert("Alert","Hi","ok");
        }

No alert showing on ui when tapping on entry.
Thanks in advance :)


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>