Skip to content

AnimationPath RepeatBehavior="1" not work as expected #766

Closed

Description

@GF-Huang

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.

Activity

  1. ghost1372 commented on Apr 5, 2021

    @ghost1372
    Member

    Did you try RepeatBehavior="Forever" ?

  2. GF-Huang commented on Apr 5, 2021

    @GF-Huang
    MemberAuthor

    Forever show me same behavior.

  3. GF-Huang commented on Apr 5, 2021

    @GF-Huang
    MemberAuthor
  4. GF-Huang commented on Apr 5, 2021

    @GF-Huang
    MemberAuthor

    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

  5. NaBian commented on Apr 25, 2021

    @NaBian
    Member

    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"

  6. added a commit that references this issue on Mar 28, 2024
    bebe9b8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址