The best practices for Windows Phone 7 says not to include any time consuming code in the Application_Launching event handler. This includes reading from IsolatedStorage. They mention to do it asynchronously.
The que开发者_如何转开发stion I have is, after launching the application, I want to take the user to his preferred screen. There are different views in my app that user can choose to keep as their preferred setting. How can I implement this scenario without reading from IsolatedStorage? Where else can I store user settings to read quickly and navigate to that screen?
Any help with this is greatly appreciated because if I add code to access IsolatedStorage, it is taking longer for the app to load. Thanks.
I'd recommend looking at using IsolatedStorageSettings to hold this but having an animated loading page displayed while you query this and which then triggers navigation to the actual page the users wants when known.
The page(s) you navigate to should then remove the loading page from the backstack.
精彩评论