WindowActivatedEventArgs WindowActivatedEventArgs WindowActivatedEventArgs Class

Definition

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

public : sealed class WindowActivatedEventArgs : ICoreWindowEventArgs, IWindowActivatedEventArgs
public sealed class WindowActivatedEventArgs : ICoreWindowEventArgs, IWindowActivatedEventArgs
Public 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
Platform::Boolean 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