public void CollectionChanged_ChartItems(object sender, global::System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { ChartUC_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { global::System.Collections.ObjectModel.ObservableCollection <global::TelerikChartTest.Models.ChartModel> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::TelerikChartTest.Models.ChartModel>; } }
public void PropertyChanged_ViewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { ChartUC_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::TelerikChartTest.ViewModels.ChartUserControlViewModel obj = sender as global::TelerikChartTest.ViewModels.ChartUserControlViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_ViewModel_DateLabel(obj.DateLabel, DATA_CHANGED); bindings.Update_ViewModel_TValue(obj.TValue, DATA_CHANGED); bindings.Update_ViewModel_AvValue(obj.AvValue, DATA_CHANGED); } } else { switch (propName) { case "DateLabel": { if (obj != null) { bindings.Update_ViewModel_DateLabel(obj.DateLabel, DATA_CHANGED); } break; } case "TValue": { if (obj != null) { bindings.Update_ViewModel_TValue(obj.TValue, DATA_CHANGED); } break; } case "AvValue": { if (obj != null) { bindings.Update_ViewModel_AvValue(obj.AvValue, DATA_CHANGED); } break; } default: break; } } } }
public void DependencyPropertyChanged_ChartItems(global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) { ChartUC_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { global::TelerikChartTest.Controls.ChartUC obj = sender as global::TelerikChartTest.Controls.ChartUC; if (obj != null) { bindings.Update_ChartItems(obj.ChartItems, DATA_CHANGED); } } }
public ChartUC_obj1_Bindings TryGetBindingObject() { ChartUC_obj1_Bindings bindingObject = null; if (weakRefToBindingObj != null) { weakRefToBindingObj.TryGetTarget(out bindingObject); if (bindingObject == null) { weakRefToBindingObj = null; ReleaseAllListeners(); } } return(bindingObject); }
public void UpdateChildListeners_(global::TelerikChartTest.Controls.ChartUC obj) { ChartUC_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { if (bindings.dataRoot != null) { bindings.dataRoot.UnregisterPropertyChangedCallback(global::TelerikChartTest.Controls.ChartUC.ChartItemsProperty, tokenDPC_ChartItems); } if (obj != null) { bindings.dataRoot = obj; tokenDPC_ChartItems = obj.RegisterPropertyChangedCallback(global::TelerikChartTest.Controls.ChartUC.ChartItemsProperty, DependencyPropertyChanged_ChartItems); } } }
public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target) { global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null; switch (connectionId) { case 1: // Controls\ChartUC.xaml line 1 { global::Windows.UI.Xaml.Controls.UserControl element1 = (global::Windows.UI.Xaml.Controls.UserControl)target; ChartUC_obj1_Bindings bindings = new ChartUC_obj1_Bindings(); returnValue = bindings; bindings.SetDataRoot(this); this.Bindings = bindings; element1.Loading += bindings.Loading; } break; } return(returnValue); }
public void PropertyChanged_ChartItems(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { ChartUC_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::System.Collections.ObjectModel.ObservableCollection <global::TelerikChartTest.Models.ChartModel> obj = sender as global::System.Collections.ObjectModel.ObservableCollection <global::TelerikChartTest.Models.ChartModel>; if (global::System.String.IsNullOrEmpty(propName)) { } else { switch (propName) { default: break; } } } }
public ChartUC_obj1_BindingsTracking(ChartUC_obj1_Bindings obj) { weakRefToBindingObj = new global::System.WeakReference <ChartUC_obj1_Bindings>(obj); }