Skip to content

Commit 3bd3d77

Browse files
author
Helder Carvalho
committed
Fixed #329
1 parent b90e113 commit 3bd3d77

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

MaterialDesignThemes.Wpf/PopupBox.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -579,12 +579,6 @@ private void AnimateChildrenIn(bool reverse)
579579
uiElement.SetCurrentValue(RenderTransformOriginProperty, new Point(.5, .5));
580580
uiElement.RenderTransform = transformGroup;
581581

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(1, deferredEndKeyTime, sineEase));
586-
Storyboard.SetTargetProperty(opacityAnimation, new PropertyPath("Opacity"));
587-
Storyboard.SetTarget(opacityAnimation, uiElement);
588582

589583
var scaleXAnimation = new DoubleAnimationUsingKeyFrames();
590584
scaleXAnimation.KeyFrames.Add(new EasingDoubleKeyFrame(0, absoluteZeroKeyTime, sineEase));
@@ -609,7 +603,6 @@ private void AnimateChildrenIn(bool reverse)
609603
Storyboard.SetTarget(translateCoordinateAnimation, uiElement);
610604

611605
var storyboard = new Storyboard();
612-
storyboard.Children.Add(opacityAnimation);
613606
storyboard.Children.Add(scaleXAnimation);
614607
storyboard.Children.Add(scaleYAnimation);
615608
storyboard.Children.Add(translateCoordinateAnimation);

0 commit comments

Comments
 (0)