WindowActivatedEventArgs WindowActivatedEventArgs WindowActivatedEventArgs WindowActivatedEventArgs Class


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

public : sealed class WindowActivatedEventArgs : ICoreWindowEventArgs, IWindowActivatedEventArgs
struct winrt::Windows::UI::Core::WindowActivatedEventArgs : ICoreWindowEventArgs, IWindowActivatedEventArgs
public sealed class WindowActivatedEventArgs : ICoreWindowEventArgs, IWindowActivatedEventArgs
Public 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 Handled

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

public : Platform::Boolean Handled { get; set; }
bool Handled(); void Handled(bool handled);
public bool Handled { get; set; }
Public ReadWrite Property Handled As bool
bool bool

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

WindowActivationState WindowActivationState WindowActivationState WindowActivationState

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

public : CoreWindowActivationState WindowActivationState { get; }
CoreWindowActivationState WindowActivationState();
public CoreWindowActivationState WindowActivationState { get; }
Public ReadOnly Property WindowActivationState As CoreWindowActivationState
See Also

See Also