aspnet-devexpress-dot-web-dot-aspxwebcontrol-a2294afe.md
Use the corresponding style settings to override control elements' appearance.
Specifies whether to enable the control’s default appearance.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(true)]
[Obsolete("Use the corresponding style settings to override control elements' appearance.", true)]
public virtual bool EnableDefaultAppearance { get; set; }
<Obsolete("Use the corresponding style settings to override control elements' appearance.", True)>
<DefaultValue(True)>
Public Overridable Property EnableDefaultAppearance As Boolean
| Type | Default |
|---|---|
| Boolean | true |
The EnableDefaultAppearance property became obsolete in v13.2. Use the following approaches to update control settings:
To disable all default styles, set a control’s CssPostfix property to a non-existent CSS postfix.
<Styles CssPostfix="None" />
Set the RenderMode property to Link to display a clickable image or link instead of the default ASPxButton.
<dx:ASPxButton ID="btn" runat="server" RenderMode="Link">
<Image Url="Images/Red.png" />
</dx:ASPxButton>
You can try different button render modes in the following demo: Button - Appearance Customization.
Note that UseSubmitBehavior and Checked properties are not effect when the RenderMode is set to Link. To enable these properties, use CssClass to disable the default button appearance.
.NoStyle {
background: none;
border: 0;
color: black;
padding: 0;
height: auto;
}
<dx:ASPxButton ID="btn" runat="server" EnableTheming="false" CssClass="NoStyle">
<Image Url="~/Images/Red.png" />
</dx:ASPxButton>
See Also