WindowActivatedEventArgs class

Applies to Windows and Windows Phone

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

Syntax


public sealed class WindowActivatedEventArgs : ICoreWindowEventArgs

Attributes

[MarshalingBehavior(Standard)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The WindowActivatedEventArgs class has these types of members:

Methods

The WindowActivatedEventArgs class inherits methods from the Object class.

Properties

The WindowActivatedEventArgs class has these properties.

PropertyAccess typeDescription

Handled

Read/writeSpecifies the property that gets or sets whether the window activation event was handled.

WindowActivationState

Read-onlyGets the activation state of the window at the time the Activated event was raised.

 

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

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.winmd

See also

CoreWindow.Activated

 

 

Show:
© 2014 Microsoft