When I try to change the scene using this.frame.Navigate () event, the class responsible for handling this event has the onNavigatedTo () method that supposedly should always be executed but only a few times it runs, I'd like to know how I can do it for the onNavigatedTo () method to always be executed.
Scene 1 where the event is triggered
battleController = new BattleController(chosen, foe);
Window.Current.CoreWindow.KeyDown -= KeySentinel;
//Window.Current.CoreWindow.KeyUp -= KeyDropped;
this.Frame.Navigate(typeof(BattleStage), battleController);
Scene 2 method that supposedly should always be called
protected override void OnNavigatedTo(NavigationEventArgs e) {
battleController = (BattleController) e.Parameter;
this.KeyDown += BattleStage_KeyDown;
Hero.Source = battleController.Jogador.Sprite_idle_right;
Foe.Source = battleController.Inimigo.Sprite.Source;
}