private void combineCenterGrids(object sender, object e) { centerGridAnimating = true; centerGridShowCompare = false; double toX = -App.Width * xShift; double toY = -App.Height * yShift; Storyboards.MoveXY(subscriptionVsOneTimeGrid, CenterGridSplitTime, -toX * xShiftCompareFactor, toY, 0, toY, finishCenterGridAnimation); if (useScalingOnCenterGridAnimation) { Storyboards.MoveXYAndScale(centerGrid, CenterGridSplitTime, toX, toY, 0, toY, CenterGridScaleUp, CenterGridScaleUpTime, null); } else { Storyboards.MoveXY(centerGrid, CenterGridSplitTime, toX, toY, 0, toY, null); } Storyboards.FadeOut(subscriptionVsOneTimeGrid, CenterGridSplitTime, null); }