Repository navigation
Open
Labels
has-repro-branchplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/ios 🍎Categorizes an issue or PR as relevant to the iOS platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/animations 🎡Categorizes an issue or PR as relevant to animations
Description
Current behavior
Bug reported on Stack Overflow by dp901.
Consider the following XAML:
<Grid Background="White" BorderBrush="Gray" BorderThickness="1" Width="250" Height="250">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="LightStates">
<VisualState x:Name="LightFlashing">
<Storyboard RepeatBehavior="Forever">
<DoubleAnimation Duration="0:0:2.0" From="1" To="0" Storyboard.TargetName="AnimatedEllipse" Storyboard.TargetProperty="Opacity" />
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Ellipse x:Name="AnimatedEllipse" Height="126" Width="126">
<Ellipse.Fill>
<SolidColorBrush x:Name="AnimatedEllipseBrush" Color="Red" />
</Ellipse.Fill>
</Ellipse>
</Grid>
This works fine on all Uno targets. However, when the Duration attribute is moved from DoubleAnimation to Storyboard the animation breaks (supposedly on all platforms, tested on Android and WASM.
Expected behavior
The animation should work the same way whether Duration is on Storyboard or not as in UWP.
How to reproduce it (as minimally and precisely as possible)
See above.
Environment
Nuget Package: Uno.UI
Package Version(s): 2.4.4
Affected platform(s):
- iOS
- Android
- WebAssembly
- WebAssembly renderers for Xamarin.Forms
- macOS
- Windows
- Build tasks
- Solution Templates
Visual Studio:
- 2017 (version: )
- 2019 (version: )
- for Mac (version: )
Metadata
Metadata
Assignees
Labels
has-repro-branchplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/ios 🍎Categorizes an issue or PR as relevant to the iOS platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/animations 🎡Categorizes an issue or PR as relevant to animations
Activity
[-]Duration on Storyboard breaks animation[/-][+]`Duration` on `Storyboard` breaks animation[/+]MartinZikmund commentedon Jul 17, 2025
This is likely still relevant for Skia targets
test: Reproduce Storyboard.Duration breaking animation
MartinZikmund commentedon Apr 7, 2026
Repro generator
Runtime test(s) added in branch
dev/mazi/repro/3434:src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Media_Animation/Given_Storyboard.cs→When_Storyboard_Duration_Set_Animation_RunsStoryboard.Durationproduces the same animation result asDoubleAnimation.Duration. The original bug was reported on Android, WASM, and iOS where the native animation paths may not respectStoryboard.Duration. The branch provides a regression guard for the managed path.Storyboardanimations enhancements #23455