Beispiel #1
0
 public void RegisterTwoWayListener_8(global::Windows.UI.Xaml.Controls.ProgressBar sourceObject)
 {
     sourceObject.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.RangeBase.MaximumProperty, (sender, prop) =>
     {
         var bindingObj = this.TryGetBindingObject();
         if (bindingObj != null)
         {
             bindingObj.UpdateTwoWay_8_Maximum();
         }
     });
     sourceObject.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.RangeBase.MinimumProperty, (sender, prop) =>
     {
         var bindingObj = this.TryGetBindingObject();
         if (bindingObj != null)
         {
             bindingObj.UpdateTwoWay_8_Minimum();
         }
     });
     sourceObject.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.RangeBase.ValueProperty, (sender, prop) =>
     {
         var bindingObj = this.TryGetBindingObject();
         if (bindingObj != null)
         {
             bindingObj.UpdateTwoWay_8_Value();
         }
     });
 }
Beispiel #2
0
 public void UpdateChildListeners_MySlider(global::Windows.UI.Xaml.Controls.ProgressBar obj)
 {
     if (obj != cache_MySlider)
     {
         if (cache_MySlider != null)
         {
             cache_MySlider.UnregisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.RangeBase.ValueProperty, tokenDPC_MySlider_Value);
             cache_MySlider = null;
         }
         if (obj != null)
         {
             cache_MySlider          = obj;
             tokenDPC_MySlider_Value = obj.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.RangeBase.ValueProperty, DependencyPropertyChanged_MySlider_Value);
         }
     }
 }