public bool SetDataRoot(global::System.Object newDataRoot) { this.bindingsTracking.ReleaseAllListeners(); if (newDataRoot != null) { this.dataRoot = (global::InnovationAndEntrepreneurship.Views.FindDetailControl)newDataRoot; return(true); } return(false); }
// Update methods for each path node used in binding steps. private void Update_(global::InnovationAndEntrepreneurship.Views.FindDetailControl obj, int phase) { this.bindingsTracking.UpdateChildListeners_(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_MasterMenuItem(obj.MasterMenuItem, phase); } } }
public void UpdateChildListeners_(global::InnovationAndEntrepreneurship.Views.FindDetailControl obj) { FindDetailControl_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { if (bindings.dataRoot != null) { bindings.dataRoot.UnregisterPropertyChangedCallback(global::InnovationAndEntrepreneurship.Views.FindDetailControl.MasterMenuItemProperty, tokenDPC_MasterMenuItem); } if (obj != null) { bindings.dataRoot = obj; tokenDPC_MasterMenuItem = obj.RegisterPropertyChangedCallback(global::InnovationAndEntrepreneurship.Views.FindDetailControl.MasterMenuItemProperty, DependencyPropertyChanged_MasterMenuItem); } } }
public void DependencyPropertyChanged_MasterMenuItem(global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) { FindDetailControl_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { global::InnovationAndEntrepreneurship.Views.FindDetailControl obj = sender as global::InnovationAndEntrepreneurship.Views.FindDetailControl; if (obj != null) { bindings.Update_MasterMenuItem(obj.MasterMenuItem, DATA_CHANGED); } } }