question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AnimationPath RepeatBehavior="1" not work as expected

See original GitHub issue

Describe the bug

<hc:AnimationPath Data="M 0,0 l 5,5 l 8,-8" Stroke="White" StrokeThickness="2" RepeatBehavior="1"
                  StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" />

pqyO3kRWr3

Expected behavior The animation only run once then stop.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • .net: .NET 5
  • IDE VS2019
  • Version 3.1.0

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
NaBiancommented, Apr 25, 2021

But how to holds the animation path after end? Now after finish, the path disappeared.

<hc:AnimationPath Data="M0,0 l4,5 l8,-8" Stroke="White" StrokeThickness="1.5" RepeatBehavior="1x" Duration="0:0:1"
                  StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" />

cY59vAgQSM

after bebe9b8 you can use RepeatBehavior="1x" FillBehavior="HoldEnd"

Read more comments on GitHub >

github_iconTop Results From Across the Web

WPF Storyboard Animation Loops Forever Even After ...
For some reason though, it always loops forever even if I set the RepeatBehavior to any value including 1. If I remove the...
Read more >
Storyboarded animations - Windows apps
The RepeatBehavior property specifies either how many times a timeline plays, or a larger duration that the timeline should repeat within. By ...
Read more >
Classic Motion Guide does not work as expected
Solved: Hi there, I am using a Classic Motion Guide in HTML 5 Canvas project but I have encountered a problem.
Read more >
Styles and Animation in Windows Presentation Foundation
Animation classes fall into three basic groups: Linear animations, key frame–based animations, and path-based animations.
Read more >
Motion Paths not working as expected with "User presses a ...
Hello everyone, I have been working with the Motion paths in Storyline 360. When I tried to trigger the animation with "user presses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found