UIElement.IsEnabledCore UIElement.IsEnabledCore UIElement.IsEnabledCore UIElement.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.

給繼承者的注意事項

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

ScrollBar類別會提供這個屬性的現有覆寫實作。The ScrollBar class provides an existing override implementation of this property. 此覆寫會決定內容的呈現區域內的內容是否超過可用的區域。This override determines whether the content inside the content presentation area exceeds the available area. 如果內容未超出區域,已啟用捲軸的部分。If the content does exceed the area, the scrollbar portion is enabled. 否則,不會啟用捲軸。Otherwise, the scrollbar is not enabled.

適用於

另請參閱