/// <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); }
private void ChangedCurrentAction(AnimationState newState) { StopTimer(); if (this.currentAnimatorState != null) { ValuesAnimatorState state = this.currentAnimatorState.PerformAction(newState); if (state != null) { this.currentAnimatorState = state; } } }
public ElementValuesAnimator(RadElement element, AnimatedPropertySetting setting) { this.element = element; this.setting = setting; this.currentAnimatorState = new ValuesAnimatorNotRunningState(this); }