Back to Devexpress

BaseControl.LookAndFeel Property

windowsforms-devexpress-dot-xtraeditors-dot-basecontrol-3e993520.md

latest3.5 KB
Original Source

BaseControl.LookAndFeel Property

Provides access to the object containing the control’s look and feel settings.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Appearance")]
public virtual UserLookAndFeel LookAndFeel { get; }
vb
<DXCategory("Appearance")>
Public Overridable ReadOnly Property LookAndFeel As UserLookAndFeel

Property Value

TypeDescription
UserLookAndFeel

A UserLookAndFeel object containing the control’s look and feel settings.

|

Remarks

To specify an editor’s look and feel settings, you can also use the RepositoryItem.LookAndFeel property of the editor’s repository item object. Repository item objects are available via editors’ BaseEdit.Properties property. Note that the LookAndFeel and RepositoryItem.LookAndFeel property values are synchronized.

Each control can override style settings defined by the LookAndFeel property via style properties. For instance, the BaseControl.BorderStyle property overrides the appearance of borders (for editors, you can use RepositoryItem.BorderStyle as well). The RepositoryItemButtonEdit.ButtonsStyle property enables you to override the look and feel settings for buttons in the ButtonEdit editor and its descendants. These properties are initially set to the BorderStyles.Default value which means that the style of the corresponding elements is controlled by the LookAndFeel property. To override the look and feel settings for a control’s borders or buttons, just set corresponding properties to a value other than BorderStyles.Default.

The style of buttons displayed within CalcEdit editor dropdowns is specified by the LookAndFeel property only.

See Also

UserLookAndFeel

BaseControl.BorderStyle

LookAndFeel

RepositoryItem.BorderStyle

ButtonsStyle

BaseControl Class

BaseControl Members

DevExpress.XtraEditors Namespace