@@ -579,6 +579,12 @@ private void AnimateChildrenIn(bool reverse)
579
579
uiElement . SetCurrentValue ( RenderTransformOriginProperty , new Point ( .5 , .5 ) ) ;
580
580
uiElement . RenderTransform = transformGroup ;
581
581
582
+ var opacityAnimation = new DoubleAnimationUsingKeyFrames ( ) ;
583
+ opacityAnimation . KeyFrames . Add ( new EasingDoubleKeyFrame ( 0 , absoluteZeroKeyTime , sineEase ) ) ;
584
+ opacityAnimation . KeyFrames . Add ( new EasingDoubleKeyFrame ( 0 , deferredStartKeyTime , sineEase ) ) ;
585
+ opacityAnimation . KeyFrames . Add ( new EasingDoubleKeyFrame ( ( double ) uiElement . GetAnimationBaseValue ( OpacityProperty ) , deferredEndKeyTime , sineEase ) ) ;
586
+ Storyboard . SetTargetProperty ( opacityAnimation , new PropertyPath ( "Opacity" ) ) ;
587
+ Storyboard . SetTarget ( opacityAnimation , uiElement ) ;
582
588
583
589
var scaleXAnimation = new DoubleAnimationUsingKeyFrames ( ) ;
584
590
scaleXAnimation . KeyFrames . Add ( new EasingDoubleKeyFrame ( 0 , absoluteZeroKeyTime , sineEase ) ) ;
@@ -603,6 +609,8 @@ private void AnimateChildrenIn(bool reverse)
603
609
Storyboard . SetTarget ( translateCoordinateAnimation , uiElement ) ;
604
610
605
611
var storyboard = new Storyboard ( ) ;
612
+
613
+ storyboard . Children . Add ( opacityAnimation ) ;
606
614
storyboard . Children . Add ( scaleXAnimation ) ;
607
615
storyboard . Children . Add ( scaleYAnimation ) ;
608
616
storyboard . Children . Add ( translateCoordinateAnimation ) ;
@@ -613,7 +621,6 @@ private void AnimateChildrenIn(bool reverse)
613
621
storyboard . Begin ( ) ;
614
622
storyboard . Seek ( TimeSpan . FromMilliseconds ( deferredEnd ) ) ;
615
623
storyboard . Resume ( ) ;
616
-
617
624
}
618
625
else
619
626
storyboard . Begin ( ) ;
0 commit comments