DoubleAnimation Duration bug

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

DoubleAnimation Duration bug

Postby Sesztak » Sat Sep 17, 2016 6:35 am

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.

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: DoubleAnimation Duration bug

Postby JS-Support @Userware » Mon Sep 19, 2016 5:28 am

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

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: DoubleAnimation Duration bug

Postby Sesztak » Mon Sep 19, 2016 5:50 am

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


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 31 guests

 

 

cron