I'm porting a Windows Phone 8.0 app to a universal store app. I used the state dictionary frequently to pass state info between pages. I know the new navigation service has support for a parameter, but I was looking for something that can store state outside the scope of the page. Does anyone know the "universal app way" of keeping state information in the scope of the app?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The replacement is the SuspensionManager.
You can use SuspensionManager.SessionState instead of PhoneApplicationService.Current.State
回答2:
check this blog.
you can pass object directly to Navigate function.