StartupMode Enumeration

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)

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

Member nameDescription
ActivateThe application was launched by the user returning to the application by pressing the Back button.
LaunchThe application was launched by the user from the Start screen.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft