Пример #1
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);
         }
     }
 }
Пример #2
0
 public static void SetStylePushBindings(DependencyObject obj, PushBindingCollection value)
 {
     obj.SetValue(StylePushBindingsProperty, value);
 }