WindowActivatedEventArgs WindowActivatedEventArgs WindowActivatedEventArgs Class


Contains the windows activation state information returned by the CoreWindow.Activated event.

public sealed class WindowActivatedEventArgs : ICoreWindowEventArgs, IWindowActivatedEventArgspublic sealed class WindowActivatedEventArgs : ICoreWindowEventArgs, IWindowActivatedEventArgsPublic NotInheritable Class WindowActivatedEventArgs Implements ICoreWindowEventArgs, IWindowActivatedEventArgs
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


This object is returned by a delegate registered for the CoreWindow.Activated event.

// returning window activation events data through WindowActivatedEventArgs

void MyCoreWindowEvents::SetWindow( // implementation called by CoreApplication::Run(), provided for context
    _In_ CoreWindow^ window

    // ...
    window->Activated +=
        ref new TypedEventHandler<CoreWindow^, WindowActivatedEventArgs^>(this, &CoreWindowEvents::OnWindowActivated);

    // ...


: This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).


Handled Handled Handled

Specifies the property that gets or sets whether the window activation event was handled.

public bool Handled { get; set; }public bool Handled { get; set; }Public ReadWrite Property Handled As bool
bool bool bool

True if the window activation event has been handled by the appropriate delegate; false if it has not.


WindowActivationState WindowActivationState WindowActivationState

Gets the activation state of the window at the time the Activated event was raised.

public CoreWindowActivationState WindowActivationState { get; }public CoreWindowActivationState WindowActivationState { get; }Public ReadOnly Property WindowActivationState As CoreWindowActivationState