private void LocationHandler_statusChanged() // it takes a while before the location service becomes available, using the status changed event we don't have to wait for it. { if (LocationHandler.status == System.Device.Location.GeoPositionStatus.Ready) { GetWeatherData(LocationHandler.getLocationLatAndLon()); } else { City = "??"; CurrentTemperature = "??"; CurrentImage = "??"; ForecastTimeFrom1 = "??"; ForecastTimeTo1 = "??"; ForecastTemperature1 = "??"; ForecastImage1 = "??"; ForecastTimeFrom2 = "??"; ForecastTimeTo2 = "??"; ForecastTemperature2 = "??"; ForecastImage2 = "??"; } }