private void GameManagerViewModelOnAttackTeamSelectionClosed(object sender, EventArgs e) { WindowWrapper.Current().Dispatcher.Dispatch(() => { HideSelectAttackTeamGridStoryboard.Completed += (ss, ee) => { SelectAttackTeamGrid.Visibility = Visibility.Collapsed; }; HideSelectAttackTeamGridStoryboard.Begin(); }); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); // Hide panels HideSelectAttackTeamGridStoryboard.Begin(); SubscribeToEnterEvents(); }