Пример #1
0
 public static void Set_TelerikChartTest_Controls_ChartUC_ChartEventItems(global::TelerikChartTest.Controls.ChartUC obj, global::System.Collections.ObjectModel.ObservableCollection <global::TelerikChartTest.Models.ChartEvent> value, string targetNullValue)
 {
     if (value == null && targetNullValue != null)
     {
         value = (global::System.Collections.ObjectModel.ObservableCollection <global::TelerikChartTest.Models.ChartEvent>)global::Windows.UI.Xaml.Markup.XamlBindingHelper.ConvertValue(typeof(global::System.Collections.ObjectModel.ObservableCollection <global::TelerikChartTest.Models.ChartEvent>), targetNullValue);
     }
     obj.ChartEventItems = value;
 }
Пример #2
0
 public bool SetDataRoot(global::System.Object newDataRoot)
 {
     this.bindingsTracking.ReleaseAllListeners();
     if (newDataRoot != null)
     {
         this.dataRoot = (global::TelerikChartTest.Controls.ChartUC)newDataRoot;
         return(true);
     }
     return(false);
 }
Пример #3
0
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 3:     // Views\MainPage.xaml line 15
                    this.obj3 = (global::TelerikChartTest.Controls.ChartUC)target;
                    break;

                default:
                    break;
                }
            }
Пример #4
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::TelerikChartTest.Controls.ChartUC obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_ChartItems(obj.ChartItems, phase);
             this.Update_ViewModel(obj.ViewModel, phase);
         }
     }
 }
Пример #5
0
                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);
                        }
                    }
                }
Пример #6
0
                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);
                        }
                    }
                }