void resetProfileCard() { foreach (object o in matchScreen.Children) { BoxView b = new BoxView(); if (o.GetType() == b.GetType()) { b = o as BoxView; resetScaling(b); } } foreach (BoxView b in profilePictureShadow) { b.TranslateTo(0, b.TranslationY + 50); } profileCircle.TranslateTo(0, profileCircle.TranslationY + 50); foreach (BoxView b in detailCardShadow) { b.TranslateTo(0, b.TranslationY - 5); } tapped = false; }