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)
fadeAnimation = this.Container.Resources["radFadeAnimation"] as RadFadeAnimation;
fadeAnimation.Ended += this.fadeAnimation_Ended;
int i = 0;
private void fadeAnimation_Ended(object sender, AnimationEndedEventArgs e)
this.targetElement.Source = new BitmapImage(new
when the exception is thrown thrown : i = 4029 it seems thats because fadeAnimation_Ended is called many times.