Page 1 of 1

DoubleAnimation Duration bug

Posted: Sat Sep 17, 2016 6:35 am
by Sesztak
Dear JS-Support,
I think there is a bug with DoubleAnimation Duration property: no matter it is set to "0:0:1" or "0:0:9": we got the same result.

Please, double check it at your side.

Code sample: -we got the same result, independently of Duration value:

<Storyboard x:Key="PlayAnimationGo" x:Name="PlayAnimationNevGo" >
<DoubleAnimation From="30" To="200" Duration="0:0:0.1" Storyboard.TargetProperty="(Button.Height)">
<DoubleAnimation.EasingFunction >
<SineEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>


<Storyboard x:Key="PlayAnimationGo" x:Name="PlayAnimationNevGo" >
<DoubleAnimation From="30" To="200" Duration="0:0:10" Storyboard.TargetProperty="(Button.Height)">
<DoubleAnimation.EasingFunction >
<SineEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>

Thanks for your quick reply in advance,
Best Regards,
P.

Re: DoubleAnimation Duration bug

Posted: Mon Sep 19, 2016 5:28 am
by JS-Support @Userware
Hi,

Can you please check with a property different than "Height"/"Width", such as "Opacity" or "ScaleTransform.ScaleX" for example? In fact, for performance reasons, "Height" may behave differently in regards to animations.

Thanks.
Regards,
JS-Support

Re: DoubleAnimation Duration bug

Posted: Mon Sep 19, 2016 5:50 am
by Sesztak
Hi,
Checked with Opacity: no animation at all ! :(
code:
<Page.Resources>
<Storyboard x:Key="PlayAnimationOpacity" x:Name="PlayAnimationNevOpacity" >
<DoubleAnimation From="1" To="0" Duration="0:0:4"
Storyboard.TargetProperty="(Button.Opacity)">
</DoubleAnimation>
</Storyboard>
</Page.Resources>

// under a StackPanel :
<Button x:Name="btnDoubleAnimationOpacityCheck" Content="DoubleAnimationOpacityCheck" Click="btnDoubleAnimationOpacityCheck_Click" />

private void btnDoubleAnimationOpacityCheck_Click(object sender, RoutedEventArgs e)
{
Storyboard.SetTarget(PlayAnimationNevOpacity, btnDoubleAnimationOpacityCheck);
PlayAnimationNevOpacity.Begin();
}

Please, check at your side,
br,
P├ęter