Example #1
0
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::WeatherApp.src.SelectedForecastDay data = args.NewValue as global::WeatherApp.src.SelectedForecastDay;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::WeatherApp.src.SelectedForecastDay was expected.");
     }
     this.SetDataRoot(data);
     this.Update();
 }
Example #2
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::WeatherApp.src.SelectedForecastDay obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_moonset(obj.moonset, phase);
             this.Update_moonrise(obj.moonrise, phase);
             this.Update_sunset(obj.sunset, phase);
             this.Update_sunrise(obj.sunrise, phase);
             this.Update_avghumidity(obj.avghumidity, phase);
             this.Update_totalprecip(obj.totalprecip, phase);
             this.Update_maxwind(obj.maxwind, phase);
             this.Update_avgvis(obj.avgvis, phase);
             this.Update_date(obj.date, phase);
             this.Update_conditionText(obj.conditionText, phase);
             this.Update_conditionicon(obj.conditionicon, phase);
             this.Update_maxtemp(obj.maxtemp, phase);
             this.Update_mintemp(obj.mintemp, phase);
         }
     }
 }
Example #3
0
            // WheatherPage_obj11_Bindings

            public void SetDataRoot(global::WeatherApp.src.SelectedForecastDay newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }