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; } break; case 7: // MainPage.xaml line 22 { global::Windows.UI.Xaml.Controls.StackPanel element7 = (global::Windows.UI.Xaml.Controls.StackPanel)target; MainPage_obj7_Bindings bindings = new MainPage_obj7_Bindings(); returnValue = bindings; bindings.SetDataRoot(element7.DataContext); element7.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings); global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element7, 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: { 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 7: { global::Windows.UI.Xaml.Controls.Grid element7 = (global::Windows.UI.Xaml.Controls.Grid)target; MainPage_obj7_Bindings bindings = new MainPage_obj7_Bindings(); returnValue = bindings; bindings.SetDataRoot((global::FakeNews.Model.NewsItem)element7.DataContext); element7.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings); } break; } return(returnValue); }
public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { MainPage_obj7_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_ImageSource(obj.ImageSource, DATA_CHANGED); bindings.Update_ImageTitle(obj.ImageTitle, DATA_CHANGED); bindings.Update_ImageRating(obj.ImageRating, DATA_CHANGED); } } else { switch (propName) { case "ImageSource": { if (obj != null) { bindings.Update_ImageSource(obj.ImageSource, DATA_CHANGED); } break; } case "ImageTitle": { if (obj != null) { bindings.Update_ImageTitle(obj.ImageTitle, DATA_CHANGED); } break; } case "ImageRating": { if (obj != null) { bindings.Update_ImageRating(obj.ImageRating, DATA_CHANGED); } break; } default: break; } } } }
// Update methods for each path node used in binding steps. private void Update_(global::Alert.Models.RoutineDetail obj, int phase) { MainPage_obj7_Bindings bindings = this; if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_RoutineId(obj.RoutineId, phase); this.Update_RoutineTitle(obj.RoutineTitle, phase); this.Update_RoutineScheduleTime(obj.RoutineScheduleTime, phase); } } }
public MainPage_obj7_Bindings TryGetBindingObject() { MainPage_obj7_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_obj7_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 7: { global::Windows.UI.Xaml.Controls.StackPanel element7 = (global::Windows.UI.Xaml.Controls.StackPanel)target; MainPage_obj7_Bindings bindings = new MainPage_obj7_Bindings(); returnValue = bindings; bindings.SetDataRoot((global::DiaryApp.ViewModel.PostViewModel)element7.DataContext); element7.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings); } break; } return(returnValue); }
public MainPage_obj7_BindingsTracking(MainPage_obj7_Bindings obj) { weakRefToBindingObj = new global::System.WeakReference <MainPage_obj7_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.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 7: { global::Windows.UI.Xaml.Controls.StackPanel element7 = (global::Windows.UI.Xaml.Controls.StackPanel)target; MainPage_obj7_Bindings bindings = new MainPage_obj7_Bindings(); returnValue = bindings; bindings.SetDataRoot((global::TripPlanner.Classes.Plans) element7.DataContext); element7.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element7, bindings); } break; } return returnValue; }