예제 #1
0
        /// <summary>Opens the edit menu for the <see cref="GameProfile"/></summary>
        /// <param name="clickedGameProfile">The clicked game profile.</param>
        private void EditCommand_ItemClicked(ListItemMainPage clickedGameProfile)
        {
            AddRemoveAll_Click();
            InsertChallengeAmounts();

            ConnectedAnimation animation = GameProfilesList.PrepareConnectedAnimation("forwardAnimation", _storedGameProfile, "connectedElement");

            SmokeGrid.Visibility = Visibility.Visible;

            SmokeGridText.Text = _storedGameProfile.GameProfile.GameProfileName;
            animation.TryStart(SmokeGrid.Children[0]);
        }
예제 #2
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)
        {
            PrepareLists();

            ConnectedAnimation animation = ConnectedAnimationService.GetForCurrentView().PrepareToAnimate("backwardsAnimation", SmokeGrid.Children[0]);

            animation.Completed += Animation_Completed;

            GameProfilesList.ScrollIntoView(_storedGameProfile, ScrollIntoViewAlignment.Default);
            GameProfilesList.UpdateLayout();

            if (ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 7))
            {
                animation.Configuration = new DirectConnectedAnimationConfiguration();
            }

            await GameProfilesList.TryStartConnectedAnimationAsync(animation, _storedGameProfile, "connectedElement");
        }