public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { FinishedItem_obj7_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { string propName = e.PropertyName; global::Wehelp.Models.HelpItem obj = sender as global::Wehelp.Models.HelpItem; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_type(obj.type, DATA_CHANGED); } } else { switch (propName) { case "type": { if (obj != null) { bindings.Update_type(obj.type, DATA_CHANGED); } break; } default: break; } } } }
public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { global::Wehelp.Models.HelpItem data = args.NewValue as global::Wehelp.Models.HelpItem; if (args.NewValue != null && data == null) { throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::Wehelp.Models.HelpItem was expected."); } this.SetDataRoot(data); this.Update(); }
// Update methods for each path node used in binding steps. private void Update_(global::Wehelp.Models.HelpItem obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_cn(obj.cn, phase); this.Update_type(obj.type, phase); this.Update_location(obj.location, phase); this.Update_commission(obj.commission, phase); } } }
public void UpdateChildListeners_(global::Wehelp.Models.HelpItem obj) { FinishedItem_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_; } } }
// Update methods for each path node used in binding steps. private void Update_(global::Wehelp.Models.HelpItem obj, int phase) { this.bindingsTracking.UpdateChildListeners_(obj); if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_cn(obj.cn, phase); this.Update_location(obj.location, phase); this.Update_commission(obj.commission, phase); } if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_type(obj.type, phase); } } }
// FinishedItem_obj7_Bindings public void SetDataRoot(global::Wehelp.Models.HelpItem newDataRoot) { this.bindingsTracking.ReleaseAllListeners(); this.dataRoot = newDataRoot; }
// FinishedItem_obj3_Bindings public void SetDataRoot(global::Wehelp.Models.HelpItem newDataRoot) { this.dataRoot = newDataRoot; }