Esempio n. 1
0
 public void RegisterTwoWayListener_3(global::Windows.UI.Xaml.Controls.TextBlock sourceObject)
 {
     sourceObject.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.TextBlock.TextProperty, (sender, prop) =>
     {
         var bindingObj = this.TryGetBindingObject();
         if (bindingObj != null)
         {
             bindingObj.UpdateTwoWay_3_Text();
         }
     });
 }
Esempio n. 2
0
 public void UpdateChildListeners_textBlock(global::Windows.UI.Xaml.Controls.TextBlock obj)
 {
     if (obj != cache_textBlock)
     {
         if (cache_textBlock != null)
         {
             cache_textBlock.UnregisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.TextBlock.TextProperty, tokenDPC_textBlock_Text);
             cache_textBlock = null;
         }
         if (obj != null)
         {
             cache_textBlock         = obj;
             tokenDPC_textBlock_Text = obj.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.TextBlock.TextProperty, DependencyPropertyChanged_textBlock_Text);
         }
     }
 }