Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Demo de utilização do GPS - Xamarin.Forms
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DemoGPS"
x:Class="DemoGPS.MainPageDemoGPS">
<StackLayout Margin="0,25,0,0">
<Button Text="Localização" Clicked="GetPosition" BackgroundColor="#EEE" />
<Label Text="Latitude" FontSize="20" HorizontalOptions="CenterAndExpand" />
<Label x:Name="LatitudeLabel" FontSize="30" HorizontalOptions="CenterAndExpand" />
<Label Text="Longitude" FontSize="20" HorizontalOptions="CenterAndExpand" />
<Label x:Name="LongitudeLabel" FontSize="30" HorizontalOptions="CenterAndExpand" />
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment