StartupMode Property
Collapse the table of content
Expand the table of content

PhoneApplicationService.StartupMode Property

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

Gets the mode in which the application was started.

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

public StartupMode StartupMode { get; }

Applications can be started by the user launching the application such as selecting the application from the Start experience, or by the user returning to the application after having previously navigated away by using the Back button or the task switcher. 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 events are fired.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft