예제 #1
0
 private void Update_CustomInkControl(global::CustomOneNoteControl.RichInkTextBox obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_CustomInkControl(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_CustomInkControl_InkCanvas(obj.InkCanvas, phase);
         }
     }
 }
예제 #2
0
                public void DependencyPropertyChanged_CustomInkControl_InkCanvas(global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop)
                {
                    MainPage_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        global::CustomOneNoteControl.RichInkTextBox obj = sender as global::CustomOneNoteControl.RichInkTextBox;
                        if (obj != null)
                        {
                            bindings.Update_CustomInkControl_InkCanvas(obj.InkCanvas, DATA_CHANGED);
                        }
                    }
                }
예제 #3
0
 public void UpdateChildListeners_CustomInkControl(global::CustomOneNoteControl.RichInkTextBox obj)
 {
     if (obj != cache_CustomInkControl)
     {
         if (cache_CustomInkControl != null)
         {
             cache_CustomInkControl.UnregisterPropertyChangedCallback(global::CustomOneNoteControl.RichInkTextBox.InkCanvasProperty, tokenDPC_CustomInkControl_InkCanvas);
             cache_CustomInkControl = null;
         }
         if (obj != null)
         {
             cache_CustomInkControl = obj;
             tokenDPC_CustomInkControl_InkCanvas = obj.RegisterPropertyChangedCallback(global::CustomOneNoteControl.RichInkTextBox.InkCanvasProperty, DependencyPropertyChanged_CustomInkControl_InkCanvas);
         }
     }
 }