/// <summary> /// Called when the screen is exiting /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnScreenExiting(object sender, ScreenExitingEventArgs e) { MapInformation.ClearAnimations(); MapInformation.MoveToY((int)-MapInformation.Height, Easing.OutQuint, 600); ButtonContainer.ClearAnimations(); ButtonContainer.MoveToY((int)(ScoreContainer.Y + ScoreContainer.Height + 50 + ButtonContainer.Height), Easing.OutQuint, 600); ScoreContainer.ClearAnimations(); ScoreContainer.MoveToX(ScoreContainer.Width + 100, Easing.OutQuint, 600); }