StartupMode Enumeration

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

Lists the modes in which an application can be started. Used by the StartupMode property.

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

Syntax

Public Enumeration StartupMode
public enum StartupMode
<object property="enumerationValue" .../>

Members

Member name Description
Activate The application was launched by the user returning to the application by pressing the Back button.
Launch The application was launched by the user from the Start screen.

Remarks

Applications can be started by the user selecting the application from the Start screen or by the user pressing the Back button to return to the application after having previously navigated away. The StartupMode property can be used to determine in which of these modes the application was started. This is most useful for XNA Framework-based applications that must perform content-loading operations before the Activated or Launching event is fired. For more information about handling different application startup modes, seeApp activation and deactivation for Windows Phone 8.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Microsoft.Phone.Shell Namespace