This is a migrated thread and some comments may be shown as answers.

Duration does not change?

1 Answer 44 Views
Animation
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Victor
Top achievements
Rank 1
Victor asked on 16 Apr 2013, 08:06 AM
I have the following code and I am trying to adjust the animation duration but does not seem to work. What am I missing?

RadScaleAndFadeAnimation scaleFadeAnimation = this.Resources["scaleFadeAnimation"] as RadScaleAndFadeAnimation;
scaleFadeAnimation.FadeAnimation.StartOpacity = 1.0;
scaleFadeAnimation.FadeAnimation.EndOpacity = 0.0;
scaleFadeAnimation.ScaleAnimation.StartScaleX = 2.0;
scaleFadeAnimation.ScaleAnimation.EndScaleX = 0.0;
scaleFadeAnimation.ScaleAnimation.StartScaleY = 2.0;
scaleFadeAnimation.ScaleAnimation.EndScaleY = 0.0;
Duration duration = new Duration(TimeSpan.FromSeconds(10));
scaleFadeAnimation.Duration = duration;
 
if (scaleFadeAnimation != null)
{
    sounds.PlaySound(solvedSound);
    scaleFadeAnimation.Ended += scaleFadeAnimation_Ended;
    RadAnimationManager.Play(this.popup, scaleFadeAnimation);                      
}

1 Answer, 1 is accepted

Sort by
0
Accepted
Victor
Telerik team
answered on 18 Apr 2013, 11:50 AM
Hi Victor,

Please set the Duration of the ScaleAnimation and FadeAnimations separately.

Regards,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Animation
Asked by
Victor
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or