public void DependencyPropertyChanged_IsBusy(global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) { Busy_obj1_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { global::Slave.Views.Busy obj = sender as global::Slave.Views.Busy; if (obj != null) { bindings.Update_IsBusy(obj.IsBusy, DATA_CHANGED); } } }
public void UpdateChildListeners_(global::Slave.Views.Busy obj) { Busy_obj1_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { if (bindings.dataRoot != null) { bindings.dataRoot.UnregisterPropertyChangedCallback(global::Slave.Views.Busy.IsBusyProperty, tokenDPC_IsBusy); bindings.dataRoot.UnregisterPropertyChangedCallback(global::Slave.Views.Busy.BusyTextProperty, tokenDPC_BusyText); } if (obj != null) { bindings.dataRoot = obj; tokenDPC_IsBusy = obj.RegisterPropertyChangedCallback(global::Slave.Views.Busy.IsBusyProperty, DependencyPropertyChanged_IsBusy); tokenDPC_BusyText = obj.RegisterPropertyChangedCallback(global::Slave.Views.Busy.BusyTextProperty, DependencyPropertyChanged_BusyText); } } }
// Update methods for each path node used in binding steps. private void Update_(global::Slave.Views.Busy obj, int phase) { this.bindingsTracking.UpdateChildListeners_(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_IsBusy(obj.IsBusy, phase); this.Update_BusyText(obj.BusyText, phase); } } else { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.UpdateFallback_BusyText(phase); } } }
// Busy_obj1_Bindings public void SetDataRoot(global::Slave.Views.Busy newDataRoot) { this.bindingsTracking.ReleaseAllListeners(); this.dataRoot = newDataRoot; }