1
Answer

How to Pause and resume an animation without using storyboard?

Ask a question
Soumya

Soumya

14y
9.5k
1

Hi,
My Problem: I want to pause and resume an animation, without storyboard.
Code:
pathrect2.BeginAnimation(
FrameworkElement.OpacityProperty, new DoubleAnimation(1, TimeSpan.FromSeconds(dblFadeEffect)));
path.BeginAnimation(
FrameworkElement.OpacityProperty, new DoubleAnimation(0, TimeSpan.FromSeconds(dblFadeEffect)));
Here pathrect2 and path are two path controls and I am basically doing an image slideshow here. I want to built play, pause and resume functionality. I am using a DispatcherTimer to provide the sliding duration.
Please help me....
Thanks,
SM

Answers (1)