Back to Devexpress

UserLookAndFeel.Style Property

windowsforms-devexpress-dot-lookandfeel-dot-userlookandfeel-7dd0ac6f.md

latest6.4 KB
Original Source

UserLookAndFeel.Style Property

Gets or sets the style of the current UserLookAndFeel object. This property is no longer supported.

Namespace : DevExpress.LookAndFeel

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[Browsable(false)]
[DefaultValue(LookAndFeelStyle.Skin)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual LookAndFeelStyle Style { get; set; }
vb
<DefaultValue(LookAndFeelStyle.Skin)>
<DXCategory("Appearance")>
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Property Style As LookAndFeelStyle

Property Value

TypeDefaultDescription
LookAndFeelStyleSkin

The style of the current UserLookAndFeel object.

|

Available values:

NameDescriptionExample
Flat

Control borders are flat. It is not recommended that you use this style (see this announcement for more details: WinForms Deprecation Notice — Classic Visual Styles).

|

| | 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. It is not recommended that you use this style (see this announcement for more details: WinForms Deprecation Notice — Classic Visual Styles).

|

| | Style3D |

Control borders are three-dimensional. It is not recommended that you use this style (see this announcement for more details: WinForms Deprecation Notice — Classic Visual Styles).

|

| | 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. It is not recommended that you use this style (see this announcement for more details: WinForms Deprecation Notice — Classic Visual Styles).

|

| | Skin |

Control elements are painted using the skin specified by the UserLookAndFeel.SkinName property.

|

|

Remarks

This property is no longer supported.

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.

winforms-grid-display-colored-progress-bars/CS/ColoredProgressBar/DifferentRepositoriesProgressBar.cs#L29

csharp
_prbLess25.ProgressViewStyle = DevExpress.XtraEditors.Controls.ProgressViewStyle.Solid;
_prbLess25.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
_prbLess25.LookAndFeel.UseDefaultLookAndFeel = false;

winforms-richedit-create-log-viewer-application/CS/Program.cs#L13

csharp
DevExpress.LookAndFeel.UserLookAndFeel.Default.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Style3D;

winforms-grid-display-colored-progress-bars/VB/ColoredProgressBar/DifferentRepositoriesProgressBar.vb#L36

vb
_prbLess25.ProgressViewStyle = DevExpress.XtraEditors.Controls.ProgressViewStyle.Solid
_prbLess25.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat
_prbLess25.LookAndFeel.UseDefaultLookAndFeel = False

winforms-richedit-create-log-viewer-application/VB/Program.vb#L13

vb
Sub Main()
    DevExpress.LookAndFeel.UserLookAndFeel.Default.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Style3D
    Call Application.EnableVisualStyles()

See Also

ActiveLookAndFeel

ParentLookAndFeel

UseDefaultLookAndFeel

UserLookAndFeel Class

UserLookAndFeel Members

DevExpress.LookAndFeel Namespace