Esempio n. 1
0
 public bool SetDataRoot(global::System.Object newDataRoot)
 {
     this.bindingsTracking.ReleaseAllListeners();
     if (newDataRoot != null)
     {
         this.dataRoot = (global::Project_UWP.Controls.CameraControl)newDataRoot;
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
                public void DependencyPropertyChanged_CanSwitch(global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop)
                {
                    CameraControl_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        global::Project_UWP.Controls.CameraControl obj = sender as global::Project_UWP.Controls.CameraControl;
                        if (obj != null)
                        {
                            bindings.Update_CanSwitch(obj.CanSwitch, DATA_CHANGED);
                        }
                    }
                }
Esempio n. 3
0
                public void UpdateChildListeners_(global::Project_UWP.Controls.CameraControl obj)
                {
                    CameraControl_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        if (bindings.dataRoot != null)
                        {
                            bindings.dataRoot.UnregisterPropertyChangedCallback(global::Project_UWP.Controls.CameraControl.IsInitializedProperty, tokenDPC_IsInitialized);
                            bindings.dataRoot.UnregisterPropertyChangedCallback(global::Project_UWP.Controls.CameraControl.CanSwitchProperty, tokenDPC_CanSwitch);
                        }
                        if (obj != null)
                        {
                            bindings.dataRoot      = obj;
                            tokenDPC_IsInitialized = obj.RegisterPropertyChangedCallback(global::Project_UWP.Controls.CameraControl.IsInitializedProperty, DependencyPropertyChanged_IsInitialized);
                            tokenDPC_CanSwitch     = obj.RegisterPropertyChangedCallback(global::Project_UWP.Controls.CameraControl.CanSwitchProperty, DependencyPropertyChanged_CanSwitch);
                        }
                    }
                }
Esempio n. 4
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::Project_UWP.Controls.CameraControl obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_IsInitialized(obj.IsInitialized, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_CameraButtonStyle(obj.CameraButtonStyle, phase);
         }
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_CanSwitch(obj.CanSwitch, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_SwitchCameraButtonStyle(obj.SwitchCameraButtonStyle, phase);
         }
     }
 }