Startup Event
Collapse the table of content
Expand the table of content

Application.Startup Event

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

Occurs when an application is started.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public event StartupEventHandler Startup
<Application Startup="eventhandler"/>

The Startup event should not be used by Windows Phone applications. Instead, use the application lifetime events exposed by the PhoneApplicationService class. When an application is being launched for the first time the Launching event is raised. When an application is being reactivated after previously being suspended, the Activated event is raised. For more information on the lifecycle of Windows Phone applications, see Activation and deactivation best practices for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft