When I click, the second page is loaded, but the application crashes with System.NullReferenceException
:
private async void Forecast_Click(object sender, RoutedEventArgs e)
{
await
CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(
CoreDispatcherPriority.Normal,
() => {
Frame.Navigate(typeof(Forecast), null);
}
);
}