8000 Animation started with PlayAnimation method plays only once · Issue #57 · quicoli/LottieSharp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Animation started with PlayAnimation method plays only once #57
Closed
@sebaJoSt

Description

@sebaJoSt

Describe the bug

<lottie:LottieAnimationView
                        x:Name="lottieAnimation"
                        Canvas.Left="140"
                        Canvas.Top="-40"
                        Width="180"
                        Height="180"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        AutoPlay="False"
                        FileName="{Binding Path=LottieFileChart}"
                        RepeatCount="0">
                        <lottie:LottieAnimationView.RenderTransform>
                            <RotateTransform Angle="30" CenterX="0" CenterY="0" />
                        </lottie:LottieAnimationView.RenderTransform>
</lottie:LottieAnimationView>

Button Click Event Handler

  private void Button_Click(object sender, RoutedEventArgs e)
        {
            //lottieAnimation.StopAnimation();
            lottieAnimation.PlayAnimation();
        }

To Reproduce
Steps to reproduce the behavior:

  1. Click on the button
  2. Animation plays
  3. Click again on the button
  4. Nothing happens

Uncommenting StopAnimation makes no difference.

Expected behavior
Every time I click the button the animation should play

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0