Reason Property
Collapse the table of content
Expand the table of content

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

© 2016 Microsoft