@@ -579,10 +579,10 @@ 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 ( ) ;
582
+ var opacityAnimation = new DoubleAnimationUsingKeyFrames ( ) ;
583
583
opacityAnimation . KeyFrames . Add ( new EasingDoubleKeyFrame ( 0 , absoluteZeroKeyTime , sineEase ) ) ;
584
584
opacityAnimation . KeyFrames . Add ( new EasingDoubleKeyFrame ( 0 , deferredStartKeyTime , sineEase ) ) ;
585
- opacityAnimation . KeyFrames . Add ( new EasingDoubleKeyFrame ( 1 , deferredEndKeyTime , sineEase ) ) ;
585
+ opacityAnimation . KeyFrames . Add ( new EasingDoubleKeyFrame ( ( double ) uiElement . GetAnimationBaseValue ( OpacityProperty ) , deferredEndKeyTime , sineEase ) ) ;
586
586
Storyboard . SetTargetProperty ( opacityAnimation , new PropertyPath ( "Opacity" ) ) ;
587
587
Storyboard . SetTarget ( opacityAnimation , uiElement ) ;
588
588
@@ -609,6 +609,7 @@ private void AnimateChildrenIn(bool reverse)
609
609
Storyboard . SetTarget ( translateCoordinateAnimation , uiElement ) ;
610
610
611
611
var storyboard = new Storyboard ( ) ;
612
+
612
613
storyboard . Children . Add ( opacityAnimation ) ;
613
614
storyboard . Children . Add ( scaleXAnimation ) ;
614
615
storyboard . Children . Add ( scaleYAnimation ) ;
@@ -620,7 +621,6 @@ private void AnimateChildrenIn(bool reverse)
620
621
storyboard . Begin ( ) ;
621
622
storyboard . Seek ( TimeSpan . FromMilliseconds ( deferredEnd ) ) ;
622
623
storyboard . Resume ( ) ;
623
-
624
624
}
625
625
else
626
626
storyboard . Begin ( ) ;
0 commit comments