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

How to make a call using label

$
0
0

Hi

how can I make my label call by tapping that label with phone num as its text

    <Label Text="(02) 345 7854">
                <Label.GestureRecognizers>
                    <TapGestureRecognizer NumberOfTapsRequired="1" Tapped="TaptoCall"/>
                </Label.GestureRecognizers>
            </Label>

Then here is my back code

void TaptoCall(object sender, EventArgs args)
    {
        Device.OpenUri(new Uri("(02) 345 7854"));
    }

When I tap on that label my app crashes


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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