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)

Syntax

Public ReadOnly Property StartupMode As StartupMode
public StartupMode StartupMode { get; }

Property Value

Type: Microsoft.Phone.Shell..::.StartupMode
Type:StartupMode.

Remarks

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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

PhoneApplicationService Class

Microsoft.Phone.Shell Namespace