private async void loadWeather() { WeatherApi weatherApi = new WeatherApi(); WeatherInfo weather; var city = settingsMgr.getStringSettings(SettingKey.CITY_NAME_KEY); if (city != null) { weather = await weatherApi.GetWeatherByCity(city); } else { weather = await weatherApi.GetWeather("30047"); } if (weather != null) { weatherLbl.Text = weather.WeatherDisplayText; BitmapImage bitmap = new BitmapImage(new Uri(base.BaseUri, @"/Assets/" + weather.IconString + ".png")); weatherIcon.Source = bitmap; // "/Assets/" + weather.IconString + ".png"; } }