コード例 #1
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::security_hackers_it_news.Models.HNewsItemModel obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0) | (1 << 1))) != 0)
         {
             this.Update_title(obj.title, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0) | (1 << 2))) != 0)
         {
             this.Update__url(obj._url, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0) | (1 << 3))) != 0)
         {
             this.Update_date(obj.date, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0) | (1 << 4))) != 0)
         {
             this.Update__lscore(obj._lscore, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0) | (1 << 5))) != 0)
         {
             this.Update_comments(obj.comments, phase);
         }
     }
 }
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::security_hackers_it_news.Models.HNewsItemModel data = args.NewValue as global::security_hackers_it_news.Models.HNewsItemModel;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::security_hackers_it_news.Models.HNewsItemModel was expected.");
     }
     this.SetDataRoot(data);
     this.Update();
 }
            // HNStorieDetailsPage_obj4_Bindings

            public void SetDataRoot(global::security_hackers_it_news.Models.HNewsItemModel newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }