UserLookAndFeel.Style Property
Gets or sets the style of the current UserLookAndFeel object.
Namespace: DevExpress.LookAndFeel
Assembly: DevExpress.Utils.v19.2.dll
Declaration
[DefaultValue(LookAndFeelStyle.Skin)]
[DXCategory("Appearance")]
public virtual LookAndFeelStyle Style { get; set; }
Property Value
Type | Default | Description |
---|---|---|
LookAndFeelStyle | **Skin** | The style of the current UserLookAndFeel object. |
Available values:
Name | Description |
---|---|
Flat | Control borders are flat. The following screenshot shows the Flat style applied to a button edit control. |
UltraFlat | Borders have an Office XP style. Borders and the client area are highlighted when the mouse pointer is positioned over them or they are focused. The following screenshot shows the UltraFlat style applied to a button edit control. |
Style3D | Control borders are three-dimensional. The following screenshot shows the Style3D style applied to a button edit control. |
Office2003 | Borders and buttons have an Office 2003 style. The borders and client area are highlighted when the mouse pointer is positioned over them or they are focused. The following screenshot shows the Office2003 style applied to a button edit control. |
Skin | Control elements are painted using the skin specified by the UserLookAndFeel.SkinName property. The following screenshot shows a button editor painted using the default Caramel skin. |
Remarks
Use the Style property to specify the style for drawing controls when the current LookAndFeel object is applied. The Style property of the current LookAndFeel is in effect only if:
the UserLookAndFeel.UseDefaultLookAndFeel property is set to false
and
- UserLookAndFeel.UseWindowsXPTheme property is set to false. Style is also in effect if UserLookAndFeel.UseWindowsXPTheme is true but the XP theme is not available
To get the actual style currently applied to a control, see the UserLookAndFeel.ActiveStyle property. The property returns the style of the current LookAndFeel object and this depends on the UserLookAndFeel.UseDefaultLookAndFeel and UserLookAndFeel.ParentLookAndFeel property values. Refer to the UserLookAndFeel.ActiveLookAndFeel topic for more details.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Style property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.