I donβt know why, but ... If you just added something to the secnod page and the problem secnod away.
<Grid> <TextBlock Text="second" /> </Grid>
I also cannot catch the exception anywhere. Previously, I had similar problems, and I had to delete the code piecemeal to eliminate an exception ... Obviously, something is wrong in the WinRT structure.
Update
No, the above answer still does not correct it. After some further investigation, I found the right way to get rid of the accident in order to call Dispatcher . I believe this is a bug that appeared in Update 1. See the link for reference.
private async void ButtonBase_OnClick(object sender, RoutedEventArgs e) { await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => Frame.Navigate(typeof(second))); }
source share