Skip to main content

RootLookAndFeel Method

Provides access to global (application-wide) look & feel settings at runtime.

Declaration

function RootLookAndFeel: TcxLookAndFeel;

Returns

Type Description
TcxLookAndFeel

Stores global look & feel settings for supported controls and application forms.

Remarks

The RootLookAndFeel global function returns a TcxLookAndFeel class instance created at application startup in a project built with DevExpress controls. This class instance stores application-wide (global or root) look & feel settings, such as the active skin, render mode, scrollbar type, etc. Corresponding settings at the level of individual controls have higher priority than global look & feel settings.

Refer to the TcxLookAndFeel class description for detailed information on all look & feel settings accessible through the RootLookAndFeel global function.

Global Look & Feel Settings and Skin Controllers

Tip

We recommend that you use a TdxSkinController component to manage global look & feel settings in an application. Unlike the RootLookAndFeel function, the TdxSkinController component contains all available global look & feel settings and allows you to change them at design time.

Multiple Skin Controllers

An application project can include multiple TdxSkinController components that share and manage the same global settings accessible through a RootLookAndFeel function call as well as the following global constants and variables:

cxIsTouchModeEnabled
Determines whether Touch mode is enabled in an application.
cxUseSkins
Specifies if a skin is applied to an application.
dxSkinFormCorners
Specifies the shape of form corners used by an application.
dxSkinShowFormShadow
Specifies if a skinned application form casts a shadow.

Note

The dxSkinControllersList global variable provides indexed access to all TdxSkinController components in the application.

See Also