/// <summary>Edits the clicked CrewMember inside of the AdaptiveGridView.</summary> /// <param name="clickedItem">The clicked item.</param> private void EditCommand_ItemClicked(CrewMember clickedCrew) { ConnectedAnimation animation = CrewGrid.PrepareConnectedAnimation("forwardAnimation", _storedMember, "connectedElement"); SmokeGrid.Visibility = Visibility.Visible; SmokeGridText.Text = _storedMember.CrewTag; animation.TryStart(SmokeGrid.Children[0]); }
/// <summary>Handles the Click event of the BackButton control.</summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private async void BackButton_Click(object sender, RoutedEventArgs e) { ConnectedAnimation animation = ConnectedAnimationService.GetForCurrentView().PrepareToAnimate("backwardsAnimation", SmokeGrid.Children[0]); animation.Completed += Animation_Completed; CrewGrid.ScrollIntoView(_storedMember, ScrollIntoViewAlignment.Default); CrewGrid.UpdateLayout(); if (ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 7)) { animation.Configuration = new DirectConnectedAnimationConfiguration(); } await CrewGrid.TryStartConnectedAnimationAsync(animation, _storedMember, "connectedElement"); }