Window​Activated​Event​Args Window​Activated​Event​Args Window​Activated​Event​Args Class

Definition

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
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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);

    // ...

}
Note

: 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).

Properties

Handled Handled Handled

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

public PlatForm::Boolean Handled { get; set; }public bool Handled { get; set; }Public ReadWrite Property Handled As bool
Value
bool bool bool

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

Attributes

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
Attributes