Ejemplo n.º 1
0
 public static void EnsureAnimator(UIElement targetElement, ref OpacityAnimator animator)
 {
     if (animator == null)
     {
         animator = new OpacityAnimator(targetElement);
     }
     if (animator == null)
     {
         throw new InvalidOperationException("The animation system could not be prepared for the target element.");
     }
 }
Ejemplo n.º 2
0
 public static void EnsureAnimator(UIElement targetElement, ref OpacityAnimator animator)
 {
     if (animator == null)
     {
         animator = new OpacityAnimator(targetElement);
     }
     if (animator == null)
     {
         throw new InvalidOperationException("The animation system could not be prepared for the target element.");
     }
 }