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); } } }
public static void SetStylePushBindings(DependencyObject obj, PushBindingCollection value) { obj.SetValue(StylePushBindingsProperty, value); }