private void showAssetDetails(object sender, TappedRoutedEventArgs e) { if (featuresDetailsMode) { return; } Storyboards.FadeIn(featuresDetails, AppearTime / 2, showProductiInfoGrid); Storyboards.AppearBottom(featuresDetails, AppearTime / 2, null); learnMore365Button.Opacity = 0; productInfoGrid.Opacity = 0; featuresDetailsMode = true; useScaleTargets = true; Storyboards.FadeOut(aUsersText, FadeTime, null); Storyboards.FadeOut(aDeviceText, FadeTime, null); // TODO Rework this section for (int i = 0; i < NrOfAssets; i++) { var transform = assetDummy[i].TransformToVisual(Window.Current.Content); Point absolutePosition = transform.TransformPoint(new Point(0, 0)); double ff = 1.0, xoff = 0; double size = App.AssetDummySize; double originSize = aImgSize; if (i == 0) // Ignore? { size = App.AssetDummySizeUser; xoff = size * 0.2; ff = 0.85; } else if (i == 1) { size = App.AssetDummySizeDevice * 1.2; xoff = currentProduct > 1 ? 0: size * 0.1; ff = 0.75; } double scale = size / originSize; xyScaleTargets[i].X = scale; xyScaleTargets[i].Y = scale; xyTargets[i].X = absolutePosition.X + (scale - 1.0) * size / 4 + xoff; xyTargets[i].Y = -App.Height + absolutePosition.Y + size * ff; } double x = xyTargets[1].X; if (currentProduct == 1) { x *= 0.75; } else if (currentProduct == 0) { x *= 0.9; } xyTargets[0].X = x; xyTargets[0].Y = xyTargets[1].Y - App.AssetDummySizeDevice / 1.7; loadSources(); if (currentProduct == 0) { aDevice.Source = homeDevices; homeDevices.Stop(); homeDevices.Play(); } else if (currentProduct == 1) { aDevice.Source = personalDevices; personalDevices.Stop(); personalDevices.Play(); } else { aDevice.Source = singleDevice; singleDevice.Stop(); singleDevice.Play(); } }