AnimationPath RepeatBehavior="1" not work as expected
See original GitHub issueDescribe 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" />
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:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found that is the Microsoft stupid design.
https://docs.microsoft.com/en-us/dotnet/api/system.windows.media.animation.repeatbehavior?f1url=%3FappId%3DDev16IDEF1%26l%3DZH-CN%26k%3Dk(System.Windows.Media.Animation.RepeatBehavior);k(DevLang-csharp)%26rd%3Dtrue&view=net-5.0
So I use
"1x"
instead of"1"
works well.after bebe9b8 you can use
RepeatBehavior="1x" FillBehavior="HoldEnd"