/// <summary> /// Virtual method used by the <see cref="GoBackCommand"/> property /// to invoke the <see cref="Windows.UI.Xaml.Controls.Frame.GoBack"/> method. /// </summary> public virtual async void GoBack() { if (this.Frame != null && this.Frame.CanGoBack) { await AnimationTrigger.AnimateClose(); this.Frame.GoBack(); } }
protected override async void OnBackKeyPress(CancelEventArgs e) { e.Cancel = true; await Task.WhenAll(new[] { AnimationTrigger.AnimateClose(), Person.ScaleToAsync(0.5, new Point(1.6, 1.6), new BackEase()) }); NavigationService.GoBack(); }
private async void ExperimentsButton_OnClick(object sender, RoutedEventArgs e) { await Task.WhenAll( AnimationTrigger.AnimateClose(), ExperimentsButton.AnimateAsync(new FlipAnimation()), ExperimentsButton.AnimateAsync(new BounceOutAnimation()), HelloButton.AnimateAsync(new BounceOutUpAnimation()), SponsorText.AnimateAsync(new LightSpeedOutLeftAnimation()) ); Frame.Navigate(typeof(ExperimentPage)); }
protected async override void OnBackKeyPress(CancelEventArgs e) { e.Cancel = true; await Task.WhenAll(new[] { AnimationTrigger.AnimateClose(), TimeGrid.AnimateAsync(new BounceOutDownAnimation()) }); NavigationService.GoBack(); }
private async void ShowcaseButton_OnClick(object sender, RoutedEventArgs e) { await Task.WhenAll( AnimationTrigger.AnimateClose(), ShowcaseButton.AnimateAsync(new FlipAnimation()), ShowcaseButton.AnimateAsync(new BounceOutDownAnimation()), NavigationButton.AnimateAsync(new BounceOutDownAnimation()), ExperimentsButton.AnimateAsync(new BounceOutDownAnimation()), SponsorText.AnimateAsync(new LightSpeedOutLeftAnimation()) ); NavigationService.Navigate(new Uri("/ShowcasePage.xaml", UriKind.Relative)); }
private async void GamesGridView_ItemClick(object sender, ItemClickEventArgs e) { var gameDefinition = ((GameDefinition)e.ClickedItem); triggered = true; await Task.WhenAll(new [] { AnimationTrigger.AnimateClose(), Boxtana.Do(BoxtanaAction.Exit), GamesGridView.AnimateItems( new BounceOutDownAnimation(), 0.05, gameDefinition, new ExpandAnimation { Duration = 0.8, FinalScale = 1.1 }) }); Frame.Navigate(typeof(GamePage), gameDefinition.UniqueId); }