Example #1
0
        protected override void CloneCore(Freezable sourceFreezable)
        {
            PushBinding pushBinding = sourceFreezable as PushBinding;

            TargetProperty           = pushBinding.TargetProperty;
            TargetDependencyProperty = pushBinding.TargetDependencyProperty;
            base.CloneCore(sourceFreezable);
        }
Example #2
0
 public static void StylePushBindingsChanged(DependencyObject target, DependencyPropertyChangedEventArgs e)
 {
     if (target != null)
     {
         PushBindingCollection stylePushBindings     = e.NewValue as PushBindingCollection;
         PushBindingCollection pushBindingCollection = GetPushBindings(target);
         foreach (PushBinding pushBinding in stylePushBindings)
         {
             PushBinding pushBindingClone = pushBinding.Clone() as PushBinding;
             pushBindingCollection.Add(pushBindingClone);
         }
     }
 }
Example #3
0
        private static void OnTargetPropertyListenerChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            PushBinding pushBinding = sender as PushBinding;

            pushBinding.TargetPropertyValueChanged();
        }