WizardStepBase.EnableTheming 属性

定义

获取或设置一个值,该值指示主题是否应用于该控件。Gets or sets a value indicating whether themes apply to this control.

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

属性值

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属性还会影响是否为其 controls 集合中包含的控件启用主题。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 在各个子控件上将属性设置为,来有选择地将主题应用到向导步骤中包含的子控件。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.

适用于

另请参阅