Example #1
0
 //------------------------------------------------------------------------------------------------
 //----------------------Modify XAML Elements For Each Weather Component---------------------------
 //------------------------------------------------------------------------------------------------
 private void UpdateTodaysWeatherDisplay()
 {
     WeatherLogic.UpdateTodaysWeather();
     if (MirrorState.IsConnectedToInternet())
     {
         TodaysWeatherTypeImage.Source       = new BitmapImage(new Uri(WeatherLogic.GetTodaysWeatherIcon()));
         TodaysWeatherLocationTextBlock.Text = WeatherLogic.GetCurrentLocation();
         TodaysWeatherTempTextBlock.Text     = WeatherLogic.GetTodaysTemperature();
         TodaysWeatherHiTempTextBlock.Text   = WeatherLogic.GetTodaysHiTemp();
         TodaysWeatherLowTempTextBlock.Text  = WeatherLogic.GetTodaysLowTemp();
         TodaysWeatherDate.Text = WeatherLogic.GetTodaysLastUpdateDay();
     }
 }