PhoneApplicationService.RunningInBackground Event

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Occurs when an app begins to run in the background.

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

Syntax

Public Event RunningInBackground As EventHandler(Of RunningInBackgroundEventArgs)
public event EventHandler<RunningInBackgroundEventArgs> RunningInBackground
<object RunningInBackground="EventHandler<RunningInBackgroundEventArgs>" .../>

Remarks

A location-aware app can request to run in the background while it is actively tracking the phone’s location. For more information, see How to run location-tracking apps in the background for Windows Phone 8.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

PhoneApplicationService Class

Microsoft.Phone.Shell Namespace