public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { Friends_obj7_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { string propName = e.PropertyName; global::Wehelp.Models.Users obj = sender as global::Wehelp.Models.Users; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_headSculpture(obj.headSculpture, DATA_CHANGED); } } else { switch (propName) { case "headSculpture": { if (obj != null) { bindings.Update_headSculpture(obj.headSculpture, DATA_CHANGED); } break; } default: break; } } } }
public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::Wehelp.Models.Users data = args.NewValue as global::Wehelp.Models.Users; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::Wehelp.Models.Users was expected."); } this.SetDataRoot(data); this.Update(); }
// Update methods for each path node used in binding steps. private void Update_(global::Wehelp.Models.Users obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_userName(obj.userName, phase); this.Update_score(obj.score, phase); } } }
// Update methods for each path node used in binding steps. private void Update_(global::Wehelp.Models.Users obj, int phase) { this.bindingsTracking.UpdateChildListeners_(obj); if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_userName(obj.userName, phase); this.Update_score(obj.score, phase); } if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_headSculpture(obj.headSculpture, phase); } } }
public void UpdateChildListeners_(global::Wehelp.Models.Users obj) { Friends_obj7_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { if (bindings.dataRoot != null) { ((global::System.ComponentModel.INotifyPropertyChanged)bindings.dataRoot).PropertyChanged -= PropertyChanged_; } if (obj != null) { bindings.dataRoot = obj; ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_; } } }
// Friends_obj3_Bindings public void SetDataRoot(global::Wehelp.Models.Users newDataRoot) { this.dataRoot = newDataRoot; }
// Friends_obj7_Bindings public void SetDataRoot(global::Wehelp.Models.Users newDataRoot) { this.bindingsTracking.ReleaseAllListeners(); this.dataRoot = newDataRoot; }