Example #1
0
            /// <summary>
            /// This method executes an action according to the <see cref="AnimationState"/>
            /// provided.
            /// <param name="newState">The new animation state based on which
            /// an action is performed.</param>
            /// </summary>
            public virtual ValuesAnimatorState PerformAction(AnimationState newState)
            {
                ValuesAnimatorState state = this.PerformActionOverride(newState);

                if (state == null)
                {
                    this.PerformDefaultAction(newState);
                    return(null);
                }

                return(state);
            }
Example #2
0
        private void ChangedCurrentAction(AnimationState newState)
        {
            StopTimer();

            if (this.currentAnimatorState != null)
            {
                ValuesAnimatorState state = this.currentAnimatorState.PerformAction(newState);

                if (state != null)
                {
                    this.currentAnimatorState = state;
                }
            }
        }
Example #3
0
 public ElementValuesAnimator(RadElement element, AnimatedPropertySetting setting)
 {
     this.element = element;
     this.setting = setting;
     this.currentAnimatorState = new ValuesAnimatorNotRunningState(this);
 }