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.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
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.