protected override void CloneCore(Freezable sourceFreezable) { PushBinding pushBinding = sourceFreezable as PushBinding; TargetProperty = pushBinding.TargetProperty; TargetDependencyProperty = pushBinding.TargetDependencyProperty; base.CloneCore(sourceFreezable); }
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); } } }
private static void OnTargetPropertyListenerChanged(object sender, DependencyPropertyChangedEventArgs e) { PushBinding pushBinding = sender as PushBinding; pushBinding.TargetPropertyValueChanged(); }