You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AnimationPath RepeatBehavior="1" not work as expected #766
<hc:AnimationPathData="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.
Activity
ghost1372 commentedon Apr 5, 2021
Did you try
RepeatBehavior="Forever"?GF-Huang commentedon Apr 5, 2021
Forevershow me same behavior.GF-Huang commentedon Apr 5, 2021
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.GF-Huang commentedon Apr 5, 2021
But how to holds the animation path after end? Now after finish, the path disappeared.
NaBian commentedon Apr 25, 2021
after bebe9b8 you can use
RepeatBehavior="1x" FillBehavior="HoldEnd"fixed HandyOrg#766