Пример #1
0
 public void RegisterTwoWayListener_12(global::Windows.UI.Xaml.Controls.TextBox sourceObject)
 {
     sourceObject.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.TextBox.TextProperty, (sender, prop) =>
     {
         var bindingObj = this.TryGetBindingObject();
         if (bindingObj != null)
         {
             bindingObj.UpdateTwoWay_12_Text();
         }
     });
     sourceObject.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.TextBox.IsReadOnlyProperty, (sender, prop) =>
     {
         var bindingObj = this.TryGetBindingObject();
         if (bindingObj != null)
         {
             bindingObj.UpdateTwoWay_12_IsReadOnly();
         }
     });
 }