Describe the bug
I tried to use a repeating animation but it seems to only play once, ignoring the Forever option being set.
Steps to reproduce
This is all you need as code to reproduce the issue:
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Spacing="16">
<StackPanel.Resources>
<a:AnimationSet x:Key="PulsateAnimation">
<a:ScalarAnimation Target="Opacity" Duration="0:0:2" Repeat="Forever">
<a:ScalarKeyFrame Key="0" Value="1"/>
<a:ScalarKeyFrame Key="0.5" Value="0"/>
<a:ScalarKeyFrame Key="1" Value="1"/>
</a:ScalarAnimation>
</a:AnimationSet>
</StackPanel.Resources>
<Button Content="Click me to animate">
<i:Interaction.Behaviors>
<i:EventTriggerBehavior EventName="Click">
<b:StartAnimationAction Animation="{StaticResource PulsateAnimation}" TargetObject="{x:Bind StateIcon}"/>
</i:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Button>
<FontIcon x:Name="StateIcon"
VerticalAlignment="Center"
Glyph="●"
FontFamily="{ThemeResource ContentControlThemeFontFamily}"
FontSize="14"
Foreground="{ThemeResource SystemFillColorCautionBrush}">
</FontIcon>
</StackPanel>
Expected behavior
I would expect the Forever value for the Repeat property to loop the animation until is stopped.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
26200.8117
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
18.4.3
Device form factor
Desktop
Additional context
I tested with CommunityToolkit.WinUI.Behaviors version 8.3.260402-preview2 and stable version 8.2.251219.
Help us help you
No, I'm unable to contribute a solution.
Describe the bug
I tried to use a repeating animation but it seems to only play once, ignoring the
Foreveroption being set.Steps to reproduce
This is all you need as code to reproduce the issue:
Expected behavior
I would expect the
Forevervalue for theRepeatproperty to loop the animation until is stopped.Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
26200.8117
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
18.4.3
Device form factor
Desktop
Additional context
I tested with
CommunityToolkit.WinUI.Behaviorsversion 8.3.260402-preview2 and stable version 8.2.251219.Help us help you
No, I'm unable to contribute a solution.