Owen Johnson
Owen Johnson

Reputation: 2516

Is there a good replacement for PhoneApplicationService.State in Windows Phone 8.1 (Universal App)?

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?

Upvotes: 0

Views: 1151

Answers (2)

Amr Tealeb
Amr Tealeb

Reputation: 76

The replacement is the SuspensionManager.

You can use SuspensionManager.SessionState instead of PhoneApplicationService.Current.State

Upvotes: 1

vITs
vITs

Reputation: 1560

check this blog.

you can pass object directly to Navigate function.

Upvotes: 1

Related Questions