SuspensionManager Error when application has more than 1 page in windows 8 XAML/C# app
问题 I'm writing a windows 8 XAML/C# app and have a little problem with the session manager. Within my App.xaml.cs my OnSuspending method looks like this: private async void OnSuspending(object sender, SuspendingEventArgs e) { var deferral = e.SuspendingOperation.GetDeferral(); //TODO: Save application state and stop any background activity await SuspensionManager.SaveAsync(); deferral.Complete(); } I have registed my rootFrame with the SuspensionManager in the OnLaunched method in App.xaml.cs: