TemplateControl.EnableTheming TemplateControl.EnableTheming TemplateControl.EnableTheming TemplateControl.EnableTheming Property

定義

取得或設定布林值,指出主題是否套用至衍生自 TemplateControl 類別的控制項。Gets or sets a Boolean value indicating whether themes apply to the control that is derived from the TemplateControl class.

public:
 virtual property bool EnableTheming { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(true)]
public override bool EnableTheming { get; set; }
member this.EnableTheming : bool with get, set
Public Overrides Property EnableTheming As Boolean

屬性值

true 表示使用主題,否則為 falsetrue to use themes; otherwise, false. 預設為 trueThe default is true.

備註

EnableTheming屬性會指出是否啟用佈景主題,以供衍生自控制項TemplateControl類別。The EnableTheming property indicates whether themes are enabled for the control that is derived from the TemplateControl class. EnableTheming屬性是true,要套用控制面板中搜尋應用程式的佈景主題目錄。When the EnableTheming property is true, the theme directory for the application is searched for control skins to apply. 如果任何特定的控制項外觀的佈景主題目錄中,將不會套用面板。If no skin for the particular control exists in the theme directory, skins are not applied.

適用於

另請參閱