WizardStepBase.EnableTheming 屬性


取得或設定值,指出佈景主題是否套用至此控制項。Gets or sets a value indicating whether themes apply to this control.

 virtual property bool EnableTheming { bool get(); void set(bool value); };
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. 預設為 falseThe default is false.



EnableTheming屬性指出控制項是否啟用主題 WizardStepBaseThe EnableTheming property indicates whether themes are enabled for the WizardStepBase control. EnableTheming屬性也會影響控制項集合中包含的控制項是否啟用主題。The EnableTheming property also affects whether themes are enabled for the controls contained in its controls collection. EnableTheming 屬性為時 true ,會搜尋應用程式的主題目錄,以套用控制項的外觀。When the EnableTheming property is true, the application's theme directory is searched for control skins to apply. 如果主題目錄中沒有特定控制項的外觀,則不會套用面板。If no skin for the particular control exists in the theme directory, a skin is not applied. EnableTheming 屬性為時 false ,不會搜尋主題目錄,也 SkinID 不會使用屬性的值。When the EnableTheming property is false, the theme directory is not searched and the value of the SkinID property is not used.

控制項可以覆寫 EnableTheming 其父控制項或包含頁面所設定的值。A control can override the EnableTheming value set by its parent control or by the containing page. 例如,如果 WizardStepBase 控制項已 EnableTheming 設定為 false ,您可以 EnableTheming true 在個別子控制項上將屬性設為,以選擇性地將主題套用至 wizard 步驟中所包含的子控制項。For example, if a WizardStepBase control has EnableTheming set to false, you can selectively apply themes to child controls contained within the wizard step by setting the EnableTheming property to true on the individual child controls.