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