ContentElement.IsEnabledCore ContentElement.IsEnabledCore ContentElement.IsEnabledCore ContentElement.IsEnabledCore Property

定義

取得值,這個值會成為衍生類別中 IsEnabled 的傳回值。Gets a value that becomes the return value of IsEnabled in derived classes.

protected:
 virtual property bool IsEnabledCore { bool get(); };
protected virtual bool IsEnabledCore { get; }
member this.IsEnabledCore : bool
Protected Overridable ReadOnly Property IsEnabledCore As Boolean

屬性值

如果已啟用該項目則為 true,否則為 falsetrue if the element is enabled; otherwise, false.

備註

繼承者注意事項Notes to inheritors

這個屬性的預設實作會快取的值,並也會計算這個項目的父項目是否已啟用。The default implementation of this property caches the value and also calculates whether the parent element of this element is enabled. 如果未啟用父代,子元素不能有效地啟用實際的使用者介面中。If the parent is not enabled, the child element cannot be effectively enabled in practical user interface. 如果您選擇覆寫這個實作,請確定您呼叫以保留此行為的基底實作。If you choose to override this implementation, make certain that you call the base implementation to preserve this behavior.

適用於