public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::HereYou.Model.CommentItem data = args.NewValue as global::HereYou.Model.CommentItem; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::HereYou.Model.CommentItem was expected."); } this.SetDataRoot(data); this.Update(); }
// Update methods for each path node used in binding steps. private void Update_(global::HereYou.Model.CommentItem obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_body(obj.body, phase); this.Update_score(obj.score, phase); this.Update_avatar(obj.avatar, phase); this.Update_username(obj.username, phase); this.Update_time(obj.time, phase); } } }
// SearchPage_obj13_Bindings public void SetDataRoot(global::HereYou.Model.CommentItem newDataRoot) { this.dataRoot = newDataRoot; }