0
當我點擊,第二頁被加載,但該應用程序崩潰與System.NullReferenceException
:試圖訪問一個對象,它是null
的成員時,會發生應用崩潰時我導航到另一幀
private async void Forecast_Click(object sender, RoutedEventArgs e)
{
await
CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(
CoreDispatcherPriority.Normal,
() => {
Frame.Navigate(typeof(Forecast), null);
}
);
}
可能的重複http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-do-i-fix-it –