PhoneApplicationService.Activated Event

July 28, 2014

Occurs when the application is being made active after previously being put into a dormant state or tombstoned.

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Event Activated As EventHandler(Of ActivatedEventArgs)
<object Activated="EventHandler<ActivatedEventArgs>" .../>

The Activated event is raised when the user has navigated away from your application, either by pressing the Start button or by invoking a Launcher or Chooser, and then returns to the application either by completing the chooser interaction, by using the Back button to until the application is active again, or by selecting the application from the task switcher. Handle this event by loading transient state from the State property. The application should present the user with an experience as if they are continuing a previous application session. Do not retrieve data from isolated storage during this event because it will cause a delay in the application loading.

It is possible for your application to be activated without having been tombstoned. In this case, you can optimize your application’s performance by checking your state objects, and if they already contain data, you do not need to restore your application’s state.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft