This question is locked. New answers and comments are not allowed.
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); }