Skip to content

BeginStoryboard not firing on WASM #444

Closed as not planned
Closed as not planned

Description

@AlexMacocian

I'm submitting a bug report

Bug report (I searched for similar issues and did not find one)

Current behavior

The UserControl, once placed inside a Page, starts animating as soon as it is loaded while in UWP.
On WASM, the UserControl appears, but it doesn't start animating.

Expected behavior

I would expect that both behave the same. As in, both in UWP and WASM, the Storyboard contained between BeginStoryboard tags will start animating as soon as the object is loaded.

Minimal reproduction of the problem with instructions

Create a blank UserControl. Place the following code inside it:

    <Grid x:Name="MainGrid">
        <Grid.Resources>
            <BeginStoryboard x:Name="BeginAnim">
            <Storyboard x:Name="GrowStoryboard">
                <DoubleAnimation
                        Storyboard.TargetName="E1"
                        Storyboard.TargetProperty="Width"
                        EnableDependentAnimation="True"
                        From="0.0"
                        To="50.0"
                        Duration="0:0:1">
                    <DoubleAnimation.RepeatBehavior>Forever</DoubleAnimation.RepeatBehavior>
                </DoubleAnimation>
                <DoubleAnimation
                        Storyboard.TargetName="E1"
                        Storyboard.TargetProperty="Height"
                        EnableDependentAnimation="True"
                        From="0.0"
                        To="50.0"
                        Duration="0:0:1">
                    <DoubleAnimation.RepeatBehavior>Forever</DoubleAnimation.RepeatBehavior>
                </DoubleAnimation>
            </Storyboard>
            </BeginStoryboard>
        </Grid.Resources>
        <Ellipse x:Name="E1" Stroke="Black" StrokeThickness="1" Opacity="1">
        </Ellipse>
        <Ellipse x:Name="E2" Stroke="Black" StrokeThickness="1" Opacity="0"></Ellipse>
    </Grid>

If you place this UserControl onto the first page and run the application, in UWP it will start expanding until width&height 50 and then restart. If you try to do the same in WASM, the page loads but the ellipse is fully expanded and doesn't animate at all.

Environment

Nuget Package: 
No additional packages
Package Version(s): 

Affected platform(s):
- [ ] iOS
- [ ] Android
- [x] WebAssembly
- [x] Windows
- [ ] Build tasks

Visual Studio
- [x] 2017 (version: Community, 15.9.28307.145 )
- [ ] 2017 Preview (version: )
- [ ] for Mac (version: )

Relevant plugins
- [ ] Resharper (version: )

Activity

  1. added
    kind/enhancement
    platform/wasm 🌐
    on Dec 18, 2018
  2. added
    project/animations 🎡
    on Sep 21, 2020
  3. added
    difficulty/tbd
    on Feb 15, 2021
  4. added
    difficulty/medium 🤔
    and removed
    difficulty/tbd
    on May 31, 2021
  5. changed the title [-]BeginStoryboard not firing on WASM[/-] [+]`BeginStoryboard` not firing on WASM[/+] on Jun 2, 2023
  6. github-actions commented on Jul 10, 2025

    @github-actions
    Contributor

    This issue has become stale with over 1 year of inactivity and will be closed in 10 days unless a comment is provided or the stale label is removed.

  7. added
    stale
    on Jul 10, 2025
  8. MartinZikmund commented on Jul 15, 2025

    @MartinZikmund
    Member

    Only relevant to native renderer, closing.

  9. added a commit that references this issue on Mar 6, 2026
  10. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  11. locked as resolved and limited conversation to collaborators on May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/medium 🤔kind/enhancementplatform/wasm 🌐project/animations 🎡stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions