Application.OnLaunched method

Expand
This topic has not yet been rated - Rate this topic

Application.OnLaunched method

[This documentation is preliminary and is subject to change.]

Invoked when the application is launched. Override this method to perform application initialization and to display initial content in the associated Window.

Syntax


protected virtual void OnLaunched(
  LaunchActivatedEventArgs args
)

Parameters

args

Type: LaunchActivatedEventArgs

Event data for the event.

Remarks

Override the OnLaunched method to perform any general app initialization that should occur only when the user launches your app normally (for example, by tapping the app tile). For info on other kinds of activation, see OnActivated.

The starting project templates include a basic implementation for OnLaunched. The implementation sets the initial root visual for the application by setting Window.Current.Content to a new instance of the class defined by the project template's MainPage XAML/code-behind pair.

Requirements

Minimum supported client

Windows 8 Release Preview

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

Application
Launching and resuming apps

 

 

Build date: 5/22/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD