public StartPage_obj1_Bindings TryGetBindingObject() { StartPage_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::MyerList.Base.BindablePage element1 = (global::MyerList.Base.BindablePage)target; StartPage_obj1_Bindings bindings = new StartPage_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; } break; } return(returnValue); }
public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target) { global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null; switch (connectionId) { case 1: // Views\StartPage.xaml line 1 { global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target; StartPage_obj1_Bindings bindings = new StartPage_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings); } break; } return(returnValue); }
public void PropertyChanged__vm(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { StartPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::TravelApp.ViewModels.StartPageViewModel obj = sender as global::TravelApp.ViewModels.StartPageViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update__vm_Message(obj.Message, DATA_CHANGED); bindings.Update__vm_ButtonsEnabled(obj.ButtonsEnabled, DATA_CHANGED); bindings.Update__vm_ShowNewUserFields(obj.ShowNewUserFields, DATA_CHANGED); bindings.Update__vm_IsLoading(obj.IsLoading, DATA_CHANGED); } } else { switch (propName) { case "Message": { if (obj != null) { bindings.Update__vm_Message(obj.Message, DATA_CHANGED); } break; } case "ButtonsEnabled": { if (obj != null) { bindings.Update__vm_ButtonsEnabled(obj.ButtonsEnabled, DATA_CHANGED); } break; } case "ShowNewUserFields": { if (obj != null) { bindings.Update__vm_ShowNewUserFields(obj.ShowNewUserFields, DATA_CHANGED); } break; } case "IsLoading": { if (obj != null) { bindings.Update__vm_IsLoading(obj.IsLoading, DATA_CHANGED); } break; } default: break; } } } }
public StartPage_obj1_BindingsTracking(StartPage_obj1_Bindings obj) { weakRefToBindingObj = new global::System.WeakReference <StartPage_obj1_Bindings>(obj); }