DeactivatedEventArgs.Reason Property

May 11, 2014

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

Show:
© 2014 Microsoft