Search code examples
wpfanimationexpression-blend

How to make an animation go back to origin point using Expression Blend


I'm trying to make a simple animation using Expression Blend in which I have a Line that acts as the MotionPath of a circle.

I made the animation start at one point of the line and end in the finishing point of the line path.

enter image description here

The ball starts at point 1. The line path ends at point 2. That's working fine. I need the ball to go back to point 1 and then repeat the behaviour forever (I know how to get this repeat behaviour part).

How can I make the ball go back to point 1?


Solution

  • In your xaml for your Animation just add the below property

     RepeatBehavior="Forever"
    

    This should repeat the animation continuously.