For security reasons, I need to log out when I exit the application and display the login screen when I return.
In Windows Phone 8 and Windows Phone 8.1 Silverlight, there are Application_Deactivated and Application_Closing methods of the App class (or OnClose, OnDeactivate methods for overriding in Caliburn.Micro).
The only interesting events are Suspend and Resume , but they are not called when you exit the application using the "Start" button and are returned using the "Back" button or launching the application from the list.
What are the alternatives for Windows Phone 8.1 XAML?
(Setting ActivationPolicy="Replace" will solve half the problem, but I think this is not possible when WMAppManifest.xml is not an event in the Windows Phone 8.1 XAML project).
Igor Kulman
source share