To dispose and re-create resources, I have to distinguish between navigation to another page of the application and a fast app switch.
How could I accomplish this? Which events do I have to use to do this task correctly?
The application is a XAML with DirectX app running on Windows Phone 8.
With best regards, Emi
You can register for OnNavigated events in the application frame (
PhoneApplicationFrame
or any custom frame you use), or override theOnNavigatedFrom
method of your page.Then you can query the
NavigationEventArgs
to check if the URI is an external page. For example: