BaseControl.LookAndFeel Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

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

Property Value

Type Description
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.

Implements

DevExpress.LookAndFeel.ISupportLookAndFeel.LookAndFeel
See Also