public void DependencyPropertyChanged_IsBusy(global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) { Busy_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { global::StartFinance.Views.Busy obj = sender as global::StartFinance.Views.Busy; if (obj != null) { bindings.Update_IsBusy(obj.IsBusy, DATA_CHANGED); } } }
public Busy_obj1_Bindings TryGetBindingObject() { Busy_obj1_Bindings bindingObject = null; if (weakRefToBindingObj != null) { weakRefToBindingObj.TryGetTarget(out bindingObject); if (bindingObject == null) { weakRefToBindingObj = null; ReleaseAllListeners(); } } return(bindingObject); }
public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target) { global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null; switch (connectionId) { case 1: { global::Windows.UI.Xaml.Controls.UserControl element1 = (global::Windows.UI.Xaml.Controls.UserControl)target; Busy_obj1_Bindings bindings = new Busy_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; } break; } return(returnValue); }
public void UpdateChildListeners_(global::StartFinance.Views.Busy obj) { Busy_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { if (bindings.dataRoot != null) { bindings.dataRoot.UnregisterPropertyChangedCallback(global::StartFinance.Views.Busy.IsBusyProperty, tokenDPC_IsBusy); bindings.dataRoot.UnregisterPropertyChangedCallback(global::StartFinance.Views.Busy.BusyTextProperty, tokenDPC_BusyText); } if (obj != null) { bindings.dataRoot = obj; tokenDPC_IsBusy = obj.RegisterPropertyChangedCallback(global::StartFinance.Views.Busy.IsBusyProperty, DependencyPropertyChanged_IsBusy); tokenDPC_BusyText = obj.RegisterPropertyChangedCallback(global::StartFinance.Views.Busy.BusyTextProperty, DependencyPropertyChanged_BusyText); } } }
public Busy_obj1_BindingsTracking(Busy_obj1_Bindings obj) { WeakRefToBindingObj = new global::System.WeakReference <Busy_obj1_Bindings>(obj); }
public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target) { global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null; switch(connectionId) { case 1: { global::Windows.UI.Xaml.Controls.UserControl element1 = (global::Windows.UI.Xaml.Controls.UserControl)target; Busy_obj1_Bindings bindings = new Busy_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; } break; } return returnValue; }
public Busy_obj1_BindingsTracking(Busy_obj1_Bindings obj) { WeakRefToBindingObj = new global::System.WeakReference<Busy_obj1_Bindings>(obj); }