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

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

            pushBinding.TargetPropertyValueChanged();
        }