コード例 #1
0
    /// <inheritdoc/>
    public AnimationController CreateController(ITimeline animation, IAnimatableProperty targetProperty)
    {
      if (targetProperty == null)
        throw new ArgumentNullException("targetProperty");
      if (animation == null)
        throw new ArgumentNullException("animation");

      var animationInstance = animation.CreateInstance();
      animationInstance.AssignTo(targetProperty);
      return new AnimationController(this, animationInstance);
    }
コード例 #2
0
    /// <overloads>
    /// <summary>
    /// Creates a new animation controller which can be used to apply the given animation on the
    /// specified objects or properties.
    /// </summary>
    /// </overloads>
    /// 
    /// <inheritdoc/>
    public AnimationController CreateController(ITimeline animation, IEnumerable<IAnimatableObject> targetObjects)
    {
      if (targetObjects == null)
        throw new ArgumentNullException("targetObjects");
      if (animation == null)
        throw new ArgumentNullException("animation");

      var animationInstance = animation.CreateInstance();
      animationInstance.AssignTo(targetObjects);
      return new AnimationController(this, animationInstance);
    }
コード例 #3
0
    /// <inheritdoc/>
    public AnimationController StartAnimation(ITimeline animation, IAnimatableObject targetObject, AnimationTransition transition)
    {
      if (targetObject == null)
        throw new ArgumentNullException("targetObject");
      if (animation == null)
        throw new ArgumentNullException("animation");

      var animationInstance = animation.CreateInstance();
      animationInstance.AssignTo(targetObject);
      StartAnimation(animationInstance, transition);
      return new AnimationController(this, animationInstance);
    }
コード例 #4
0
        /// <inheritdoc/>
        public AnimationController CreateController(ITimeline animation, IAnimatableObject targetObject)
        {
            if (targetObject == null)
            {
                throw new ArgumentNullException("targetObject");
            }
            if (animation == null)
            {
                throw new ArgumentNullException("animation");
            }

            var animationInstance = animation.CreateInstance();

            animationInstance.AssignTo(targetObject);
            return(new AnimationController(this, animationInstance));
        }
コード例 #5
0
        /// <inheritdoc/>
        public AnimationController StartAnimation(ITimeline animation, IAnimatableProperty targetProperty, AnimationTransition transition)
        {
            if (targetProperty == null)
            {
                throw new ArgumentNullException("targetProperty");
            }
            if (animation == null)
            {
                throw new ArgumentNullException("animation");
            }

            var animationInstance = animation.CreateInstance();

            animationInstance.AssignTo(targetProperty);
            StartAnimation(animationInstance, transition);
            return(new AnimationController(this, animationInstance));
        }
コード例 #6
0
        /// <inheritdoc/>
        public AnimationController StartAnimation(ITimeline animation, IEnumerable <IAnimatableObject> targetObjects, AnimationTransition transition)
        {
            if (targetObjects == null)
            {
                throw new ArgumentNullException("targetObjects");
            }
            if (animation == null)
            {
                throw new ArgumentNullException("animation");
            }

            var animationInstance = animation.CreateInstance();

            animationInstance.AssignTo(targetObjects);
            StartAnimation(animationInstance, transition);
            return(new AnimationController(this, animationInstance));
        }