private void OnNavigated(object sender, NavigationEventArgs e) { var runnerPage = e.Content as ICoreRunnerPage; CoreRunner = runnerPage?.CoreRunner; if (CoreRunner != null) { CoreRunner.CoreRunExceptionOccurred -= OnCoreExceptionOccurred; CoreRunner.CoreRunExceptionOccurred += OnCoreExceptionOccurred; } }