private void SubscribeToCaptureEvents() { ViewModel.PokemonEvolved += ViewModelOnPokemonEvolved; ShowEvolveMenuStoryboard.Completed += async(s, e) => { await Task.Delay(1000); EvolvePokemonStoryboard.Begin(); }; EvolvePokemonStoryboard.Completed += async(s, e) => { await Task.Delay(1000); ShowEvolveStatsModalStoryboard.Begin(); }; }
private void SubscribeToCaptureEvents() { ViewModel.PokemonEvolved += ViewModelOnPokemonEvolved; ShowEvolveMenuStoryboard.Completed += async(s, e) => { await Task.Delay(1000); EvolvePokemonStoryboard.Begin(); }; EvolvePokemonStoryboard.Completed += async(s, e) => { await Task.Delay(1000); ViewModel.EvolveAnimationIsRunning = false; ViewModel.NavigateToEvolvedPokemonCommand.Execute(); }; }