Duration does not change?

2 posts, 1 answers
  1. Victor
    Victor avatar
    4 posts
    Member since:
    Jan 2013

    Posted 16 Apr 2013 Link to this post

    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);                      
    }

  2. Answer
    Victor
    Admin
    Victor avatar
    1351 posts

    Posted 18 Apr 2013 Link to this post

    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.
  3. DevCraft banner
Back to Top