Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.78 KB

File metadata and controls

36 lines (26 loc) · 1.78 KB
-api-id -api-type
M:Windows.UI.Xaml.Application.OnActivated(Windows.ApplicationModel.Activation.IActivatedEventArgs)
winrt method

Windows.UI.Xaml.Application.OnActivated

-description

Invoked when the application is activated by some means other than normal launching.

-parameters

-param args

Event data for the event.

-remarks

When a user launches your app normally (for example, by tapping the app tile), only the OnLaunched method is called. Override the OnActivated method to perform any general app initialization that should occur only when the app is not launched normally (for example, from another app through the Search contract). You can determine how the app was activated through the IActivatedEventArgs.Kind property.

For most kinds of activation, you can perform initialization specific to the activation type by overriding one of the following methods instead of the OnActivated method:

For more info, see App lifecycle.

-examples

-see-also

Launching and resuming apps