UserLookAndFeel.Style Property

Gets or sets the style of the current UserLookAndFeel object.

Namespace: DevExpress.LookAndFeel

Assembly: DevExpress.Utils.v21.1.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.

LookAndFeel_Flat

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.

LookAndFeel_UltraFlat

LookAndFeel_UltraFlat_hot

Style3D

Control borders are three-dimensional. The following screenshot shows the Style3D style applied to a button edit control.

LookAndFeel_Style3D

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.

LookAndFeel_Office2003

LookAndFeel_Office2003_hot

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.

LookAndFeel_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:

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.

See Also