Пример #1
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::App5.Controls.CameraControl obj = sender as global::App5.Controls.CameraControl;
                        if (obj != null)
                        {
                            bindings.Update_CanSwitch(obj.CanSwitch, DATA_CHANGED);
                        }
                    }
                }
Пример #2
0
                public void DependencyPropertyChanged_IsInitialized(global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop)
                {
                    CameraControl_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        global::Demoo.Controls.CameraControl obj = sender as global::Demoo.Controls.CameraControl;
                        if (obj != null)
                        {
                            bindings.Update_IsInitialized(obj.IsInitialized, DATA_CHANGED);
                        }
                    }
                }
Пример #3
0
                public CameraControl_obj1_Bindings TryGetBindingObject()
                {
                    CameraControl_obj1_Bindings bindingObject = null;

                    if (weakRefToBindingObj != null)
                    {
                        weakRefToBindingObj.TryGetTarget(out bindingObject);
                        if (bindingObject == null)
                        {
                            weakRefToBindingObj = null;
                            ReleaseAllListeners();
                        }
                    }
                    return(bindingObject);
                }
Пример #4
0
 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\CameraControl.xaml line 1
     {
         global::Windows.UI.Xaml.Controls.UserControl element1 = (global::Windows.UI.Xaml.Controls.UserControl)target;
         CameraControl_obj1_Bindings bindings = new CameraControl_obj1_Bindings();
         returnValue = bindings;
         bindings.SetDataRoot(this);
         this.Bindings     = bindings;
         element1.Loading += bindings.Loading;
     }
     break;
     }
     return(returnValue);
 }
Пример #5
0
                public void UpdateChildListeners_(global::App5.Controls.CameraControl obj)
                {
                    CameraControl_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        if (bindings.dataRoot != null)
                        {
                            bindings.dataRoot.UnregisterPropertyChangedCallback(global::App5.Controls.CameraControl.IsInitializedProperty, tokenDPC_IsInitialized);
                            bindings.dataRoot.UnregisterPropertyChangedCallback(global::App5.Controls.CameraControl.CanSwitchProperty, tokenDPC_CanSwitch);
                        }
                        if (obj != null)
                        {
                            bindings.dataRoot      = obj;
                            tokenDPC_IsInitialized = obj.RegisterPropertyChangedCallback(global::App5.Controls.CameraControl.IsInitializedProperty, DependencyPropertyChanged_IsInitialized);
                            tokenDPC_CanSwitch     = obj.RegisterPropertyChangedCallback(global::App5.Controls.CameraControl.CanSwitchProperty, DependencyPropertyChanged_CanSwitch);
                        }
                    }
                }
Пример #6
0
 public CameraControl_obj1_BindingsTracking(CameraControl_obj1_Bindings obj)
 {
     weakRefToBindingObj = new global::System.WeakReference <CameraControl_obj1_Bindings>(obj);
 }