AutomationPeer.IsEnabledCore 方法

定義

當 Microsoft 使用者介面自動化 用戶端呼叫 IsEnabled 或對等的 Microsoft 使用者介面自動化 用戶端 API 時,提供對等的行為。

protected:
 virtual bool IsEnabledCore() = IsEnabledCore;
bool IsEnabledCore();
protected virtual bool IsEnabledCore();
function isEnabledCore()
Protected Overridable Function IsEnabledCore () As Boolean

傳回

Boolean

bool

如果專案可以與 互動,則為 true;否則為 false

備註

AutomationPeer 層級的標準實作會傳回 true。 不過,FrameworkElementAutomationPeer 會新增行為,以檢查擁有者是否為 Control,並從 Control.IsEnabled 轉送擁有者資訊。 如果擁有者不是控件,但有對等,例如 TextBlock,FrameworkElementAutomationPeer 實作會傳回 true。

適用於

另請參閱