CoreApplicationView.Activated Event

Occurs when the view is activated.

Syntax

public:
event TypedEventHandler<CoreApplicationView^ , IActivatedEventArgs^ >^ Activated {
         EventRegistrationToken add (TypedEventHandler<CoreApplicationView^ , IActivatedEventArgs^ >^ value);
         void remove (EventRegistrationToken token);
}  

Remarks

The type of the class being passed in as the IActivatedEventArgs arument is dependent on the ActivationKind of the activation event. For example the Launch ActivationKind indicates an LaunchActivatedEventArgs instance.

void ApplicationView::OnActivated(CoreApplicationView^ applicationView, IActivatedEventArgs^ args)
{
	if (args->Kind == ActivationKind::Launch)
	{
		LaunchActivatedEventArgs ^launchArgs = (LaunchActivatedEventArgs ^) args;
    ...
  }
  ...
}  

Requirements

Namespace: Windows.ApplicationModel.Core

Metadata: windows.winmd

See also

Overview

App States

White Papers - Process Lifetime Management for Xbox One

Reference

CoreApplicationView Class

CoreApplicationView Members

Windows.ApplicationModel.Core Namespace

CoreApplication.Resuming Event

CoreApplication.Suspending Event

CoreApplicationView.Activated Event