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.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target; MainPage_obj1_Bindings bindings = new MainPage_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); bindings.SetConverterLookupRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; } break; case 12: { global::Windows.UI.Xaml.Controls.TextBlock element12 = (global::Windows.UI.Xaml.Controls.TextBlock)target; MainPage_obj12_Bindings bindings = new MainPage_obj12_Bindings(); returnValue = bindings; bindings.SetDataRoot((global::MVVMJSON.ViewModel.DogViewModel)element12.DataContext); element12.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element12, bindings); } 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: // MainPage.xaml line 1 { global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target; MainPage_obj1_Bindings bindings = new MainPage_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings); } break; case 12: // MainPage.xaml line 41 { global::Windows.UI.Xaml.Controls.Image element12 = (global::Windows.UI.Xaml.Controls.Image)target; MainPage_obj12_Bindings bindings = new MainPage_obj12_Bindings(); returnValue = bindings; bindings.SetDataRoot(element12.DataContext); element12.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element12, bindings); global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element12, bindings); } break; } return(returnValue); }
public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { MainPage_obj12_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::PhotoLab.ImageFileInfo obj = sender as global::PhotoLab.ImageFileInfo; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_ImageTitle(obj.ImageTitle, DATA_CHANGED); } } else { switch (propName) { case "ImageTitle": { if (obj != null) { bindings.Update_ImageTitle(obj.ImageTitle, DATA_CHANGED); } break; } default: break; } } } }
public MainPage_obj12_Bindings TryGetBindingObject() { MainPage_obj12_Bindings bindingObject = null; if (weakRefToBindingObj != null) { weakRefToBindingObj.TryGetTarget(out bindingObject); if (bindingObject == null) { weakRefToBindingObj = null; ReleaseAllListeners(); } } return(bindingObject); }
public void UpdateChildListeners_(global::PhotoLab.ImageFileInfo obj) { MainPage_obj12_Bindings bindings = TryGetBindingObject(); if (bindings != null) { 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_; } } }
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.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target; MainPage_obj1_Bindings bindings = new MainPage_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; } break; case 8: { global::Windows.UI.Xaml.Controls.StackPanel element8 = (global::Windows.UI.Xaml.Controls.StackPanel)target; MainPage_obj8_Bindings bindings = new MainPage_obj8_Bindings(); returnValue = bindings; bindings.SetDataRoot((global::deviantArt.Shared.Models.CategoryItem)element8.DataContext); element8.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element8, bindings); } break; case 12: { global::Windows.UI.Xaml.Controls.Grid element12 = (global::Windows.UI.Xaml.Controls.Grid)target; MainPage_obj12_Bindings bindings = new MainPage_obj12_Bindings(); returnValue = bindings; bindings.SetDataRoot((global::deviantArt.Shared.Models.ImageItem)element12.DataContext); element12.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element12, bindings); } break; } return(returnValue); }
public MainPage_obj12_BindingsTracking(MainPage_obj12_Bindings obj) { WeakRefToBindingObj = new global::System.WeakReference <MainPage_obj12_Bindings>(obj); }