Windows Dev Center

PhoneApplicationService.StartupMode Property

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

© 2015 Microsoft