TemplateControl.EnableTheming 屬性

定義

取得或設定布林值,指出主題是否套用至衍生自 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. true[EnableTheming] 屬性時,會搜尋應用程式的主題目錄,以取得要套用的控制面板。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.

適用於

另請參閱