Closed
Description
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:
- Click on the button
- Animation plays
- Click again on the button
- Nothing happens
Uncommenting StopAnimation makes no difference.
Expected behavior
Every time I click the button the animation should play