The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DeactivatedEventArgs.Reason Property

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

Indicates the reason that the application was deactivated.

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public DeactivationReason Reason { get; }

Property Value

Type: Microsoft.Phone.Shell.DeactivationReason
The reason the application was deactivated.

Applications can use the Reason property to determine why the application was deactivated and, when appropriate, alert the user with a ShellToast.

Windows Phone OS

Supported in: 8.1, 8.0