Geolocator class is used to get the current location
async private void GetCurrentLocation()
{
var geolocator = new Geolocator();
Geoposition position = await geolocator.GetGeopositionAsync();
Geocoordinate coordinate = position.Coordinate;
MessageBox.Show("Latitude = " + coordinate.Latitude + " Longitude = " + coordinate.Longitude);
}