Is there a good replacement for PhoneApplicationSe

2019-08-26 19:13发布

问题:

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.