FrameworkContentElement.OverridesDefaultStyle 屬性

定義

取得或設定值,這個值表示此項目是否會併入佈景主題樣式中的樣式屬性。Gets or sets a value indicating whether this element incorporates style properties from theme styles.

public:
 property bool OverridesDefaultStyle { bool get(); void set(bool value); };
public bool OverridesDefaultStyle { get; set; }
member this.OverridesDefaultStyle : bool with get, set
Public Property OverridesDefaultStyle As Boolean

屬性值

如果這個項目不會使用佈景主題樣式,所有從樣式產生的屬性都來自本機應用程式樣式,且佈景主題樣式屬性不會套用,則為 truetrue if this element does not use theme style properties; all style-originating properties come from local application styles, and theme style properties do not apply. 如果應用程式樣式先套用,然後針對不是在應用程式樣式中具體設定的屬性套用佈景主題樣式則為 falsefalse if application styles apply first, and then theme styles apply for properties that were not specifically set in application styles.

備註

這個屬性的最常見用法是在提供主題樣式的樣式 setter 內的間接使用方式。The most common usage of this property is an indirect usage within the setter of a style that is supplying a themed style.

相依性屬性資訊Dependency Property Information

識別碼欄位Identifier field OverridesDefaultStyleProperty
設定為 true 的中繼資料屬性Metadata properties set to true AffectsMeasure

適用於

另請參閱