Skip to main content

BaseControl.LookAndFeel Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

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.

See Also