Beispiel #1
0
        private async void Form1_Load(object sender, EventArgs e)
        {
            var geo = await GpsLocation.GetCoordinates();

            label1.Text = $"You're at ({geo.latitude:N2}, {geo.longitude:N2})";
        }
        private async void Page_Loaded(object sender, RoutedEventArgs e)
        {
            var geo = await GpsLocation.GetCoordinates();

            TextBlock.Text = $"You're at ({geo.latitude:N2}, {geo.longitude:N2})";
        }