View Issue Details

IDProjectCategoryView StatusLast Update
0000694NoesisGUIUnitypublic2025-02-22 19:10
ReporterScherub Assigned Tosfernandez  
PrioritynormalSeveritymajor 
Status assignedResolutionopen 
Summary0000694: DoubleAnimation.BeginTime doesn't seem to work properly
Description

I have the following Storyboard with extra big values. :)

[quote]
<Storyboard x:Key="ShowStoryboard">
<DoubleAnimation From="0.0" To="1.0" Duration="0:0:1.1" Storyboard.TargetName="WindowBorder" Storyboard.TargetProperty="RenderTransform.ScaleX" />

            <DoubleAnimation From="0.0" To="0.1" Duration="0:0:1.2" Storyboard.TargetName="WindowBorder" Storyboard.TargetProperty="RenderTransform.ScaleY" />

            <DoubleAnimation From="0.1" To="1.0" BeginTime="0:0:1.2" Duration="0:0:1.3" Storyboard.TargetName="WindowBorder" Storyboard.TargetProperty="RenderTransform.ScaleY" />
        </Storyboard>

[/quote]

I try to do a second animation after the first has finished. The same Storyboard works in WPF but in NoesisGUI it's kinda messed up right now. The first time it runs both storyboards run, with the second animation apparently starting from scratch again. Each successive run it seems that only the second animation is played.

PlatformAny

Relationships

has duplicate 0001124 assignedsfernandez Storyboard can not contain multiple animations targeting same property 
has duplicate 0003647 assignedsfernandez Storyboard only executes the last animation of multiple animations that change targets on the same property 

Activities

sfernandez

sfernandez

2015-07-25 01:57

manager   ~0002771

It seems that we are ignoring the first animation of ScaleY, only the second one is applied.

While we fix this bug, you can use a DoubleAnimationUsingKeyFrames that is perfect for this scenario:


<Storyboard x:Key="ShowStoryboard">
    <DoubleAnimation From="0.0" To="1.0" Duration="0:0:1.1"
        Storyboard.TargetName="WindowBorder"
        Storyboard.TargetProperty="RenderTransform.ScaleX" />

    <DoubleAnimationUsingKeyFrames
        Storyboard.TargetName="WindowBorder"
        Storyboard.TargetProperty="RenderTransform.ScaleY">
        <EasingDoubleKeyFrame KeyTime="0:0:0" Value="0.0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:1.2" Value="0.1"/>
        <EasingDoubleKeyFrame KeyTime="0:0:2.5" Value="1.0"/>
    </DoubleAnimationUsingKeyFrames>
</Storyboard>

Scherub

Scherub

2015-07-25 02:09

reporter   ~0002772

Ah, this works. Thanks a lot! :)

ivodopiviz

ivodopiviz

2023-11-06 15:27

reporter   ~0008928

Last edited: 2023-11-06 15:27

Is it possible I'm hitting the same bug in C++?

My XAML:

<Storyboard x:Key="FadeAnimation" TargetName="MyStackPanel">
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:1"/>
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:1" BeginTime="0:0:10"/>
</Storyboard>

I know there are workarounds, but it'd be nice to have this fixed :)

Issue History

Date Modified Username Field Change
2015-07-25 01:00 Scherub New Issue
2015-07-25 01:57 sfernandez Note Added: 0002771
2015-07-25 01:57 sfernandez Assigned To => sfernandez
2015-07-25 01:57 sfernandez Status new => feedback
2015-07-25 02:09 Scherub Note Added: 0002772
2015-07-25 02:09 Scherub Status feedback => assigned
2018-11-01 02:14 jsantos View Status public => private
2018-11-22 21:32 sfernandez View Status private => public
2018-11-22 21:32 sfernandez Platform => Any
2018-11-22 21:32 sfernandez Relationship added has duplicate 0001124
2023-11-06 15:27 ivodopiviz Note Added: 0008928
2023-11-06 15:27 ivodopiviz Note Edited: 0008928
2025-02-22 19:10 Demond Relationship added has duplicate 0003647
2025-10-10 13:29 jsantos Category Unity3D => Unity