Skip to main content
A newer version of this page is available. .

BaseControl.LookAndFeel Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Appearance")]
public virtual UserLookAndFeel LookAndFeel { get; }

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LookAndFeel 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.

See Also