Dela via


InputActivationListener Class

Definition

Provides the ability to access and observe changes to the activation state of a window, view, or other visual element.

public ref class InputActivationListener sealed : AttachableInputObject
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class InputActivationListener final : AttachableInputObject
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class InputActivationListener : AttachableInputObject
Public NotInheritable Class InputActivationListener
Inherits AttachableInputObject
Inheritance
Object Platform::Object IInspectable AttachableInputObject InputActivationListener
Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Properties

State

Gets the activation state of the window, view, or other visual element.

Methods

Close()

Terminates the AttachableInputObject instance.

(Inherited from AttachableInputObject)
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from AttachableInputObject)

Events

InputActivationChanged

Occurs when the window, view, or other visual element completes transition to a new activation state.

Applies to

See also