The animation performed so fast when the duration is set below 1 second.
please see sample code below:
Code: Select all
<Storyboard x:Key="LoginPage_Fadein" >
<ObjectAnimationUsingKeyFrames BeginTime="0:0:0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Grid_Login">
<DiscreteObjectKeyFrame KeyTime="0">
<DiscreteObjectKeyFrame.Value>
<Visibility>Visible</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation BeginTime="0:0:0.0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Grid_Login" From="0" To="1" Duration="0:0:0.999"/>
</Storyboard>
I have set to 999 milisecs so "at least" it behaves correctly. Like in version 1.x
Hoping for your feedback.
Thanks.