Repository navigation
Closed
Labels
difficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't workingproject/animations 🎡Categorizes an issue or PR as relevant to animations
Description
Current behavior
I have created double animation with repeat behavior set to forever.
Applied the animation to Render Transform
Attached Render Transform to textbox.
The target move as expected but stops after one or two iterations
Expected behavior
The animation should move for ever as according to repeat behavior (it does so in UWP)
How to reproduce it (as minimally and precisely as possible)
Create a single page with following XAML and Code Behind
XAML
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Text="Hello, world!" Margin="20" FontSize="30"
x:Name="text"/>
<Button VerticalAlignment="Center" HorizontalAlignment="Center"
Content="Click ME" Grid.Row="1" Click="Button_Click">
</Button>
</Grid>Code Behind
var ts = new TranslateTransform();
text.RenderTransform = ts;
var da = new DoubleAnimation();
da.To = 500;
da.RepeatBehavior = RepeatBehavior.Forever;
da.Duration = TimeSpan.FromSeconds(5);
Storyboard.SetTarget(da, ts);
Storyboard.SetTargetProperty(da, "X");
var sb = new Storyboard();
sb.Children.Add(da);
sb.Begin();Environment
Nuget Package:
Package Version(s):
Affected platform(s):
- iOS
- Android // working flawlessly
- WebAssembly
- WebAssembly renderers for Xamarin.Forms
- macOS
- Windows
- Build tasks
- Solution Templates
Visual Studio:
- 2017 (version: )
- 2019 (version: )
- for Mac (version: )
Relevant plugins:
- Resharper (version: )
Anything else we need to know?
Metadata
Metadata
Assignees
Labels
difficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't workingproject/animations 🎡Categorizes an issue or PR as relevant to animations
Activity
[-]Double Animation Stops After 1 or 2 iterations[/-][+]WASM: Double Animation Stops After 1 or 2 iterations[/+]jeromelaban commentedon Jan 21, 2020
Thanks for the report !
@dr1rrb does it ring a bell ?
dr1rrb commentedon Jan 21, 2020
Unfortunately no 😕