This question is locked. New answers and comments are not allowed.
Hi Telerik,
Im trying to reproduce fade Animation in my project.
I have a StackOverflowException when trying to change animated pictures
Here is the Code:
when the exception is thrown thrown : i = 4029 it seems thats because fadeAnimation_Ended is called many times.
Please Help
Regards
Im trying to reproduce fade Animation in my project.
I have a StackOverflowException when trying to change animated pictures
Here is the Code:
RadFadeAnimation fadeAnimation = null;protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { base.OnNavigatedTo(e); fadeAnimation = this.Container.Resources["radFadeAnimation"] as RadFadeAnimation; fadeAnimation.Ended += this.fadeAnimation_Ended; RadAnimationManager.Play(this.targetElement, fadeAnimation); } int i = 0; private void fadeAnimation_Ended(object sender, AnimationEndedEventArgs e) { i++; this.targetElement.Source = new BitmapImage(new Uri("/Images/dalilbg.png", UriKind.Relative)); RadAnimationManager.Play(this.targetElement, fadeAnimation); }Please Help
Regards