InputActivationListener 類別

定義

提供存取及觀察視窗、檢視或其他視覺元素啟用狀態變更的能力。

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
繼承
Object Platform::Object IInspectable AttachableInputObject InputActivationListener
屬性

Windows 需求

裝置系列
Windows 10, version 1903 (已於 10.0.18362.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v8.0 引進)

屬性

State

取得視窗、檢視或其他視覺專案的啟用狀態。

方法

Close()

終止 AttachableInputObject 實例。

(繼承來源 AttachableInputObject)
Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

(繼承來源 AttachableInputObject)

事件

InputActivationChanged

當視窗、檢視或其他視覺專案完成轉換為新的啟用狀態時發生。

適用於

另請參閱