public bool SetDataRoot(global::System.Object newDataRoot)
 {
     this.bindingsTracking.ReleaseAllListeners();
     if (newDataRoot != null)
     {
         this.dataRoot = (global::TestConsoleDead.Shared.GenericControl)newDataRoot;
         return(true);
     }
     return(false);
 }
 // Update methods for each path node used in binding steps.
 private void Update_(global::TestConsoleDead.Shared.GenericControl obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_SectionControlSource(obj.SectionControlSource, phase);
         }
     }
 }
                public void DependencyPropertyChanged_SectionControlSource(global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop)
                {
                    GenericControl_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        global::TestConsoleDead.Shared.GenericControl obj = sender as global::TestConsoleDead.Shared.GenericControl;
                        if (obj != null)
                        {
                            bindings.Update_SectionControlSource(obj.SectionControlSource, DATA_CHANGED);
                        }
                    }
                }
                public void UpdateChildListeners_(global::TestConsoleDead.Shared.GenericControl obj)
                {
                    GenericControl_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        if (bindings.dataRoot != null)
                        {
                            bindings.dataRoot.UnregisterPropertyChangedCallback(global::TestConsoleDead.Shared.GenericControl.SectionControlSourceProperty, tokenDPC_SectionControlSource);
                        }
                        if (obj != null)
                        {
                            bindings.dataRoot             = obj;
                            tokenDPC_SectionControlSource = obj.RegisterPropertyChangedCallback(global::TestConsoleDead.Shared.GenericControl.SectionControlSourceProperty, DependencyPropertyChanged_SectionControlSource);
                        }
                    }
                }