TcxLookAndFeel.MasterLookAndFeel Property
Provides access to the source of default look & feel settings at the current hierarchy level.
Declaration
property MasterLookAndFeel: TcxLookAndFeel read; write;
Property Value
Type |
---|
TcxLookAndFeel |
Remarks
Look & feel settings are arranged into at least three levels to determine the appearance of all DevExpress controls in an application:
The level of an individual control accessible via the control’s LookAndFeel property. If a look & feel option is not set at this level, the control imports the corresponding setting from the global or parent level via the MasterLookAndFeel property.
The optional level of a parent control accessible via the control’s LookAndFeel property. If a look & feel option is not set at this level, the parent control imports the corresponding setting from the global or another parent level via the MasterLookAndFeel property.
The global level accessible via the RootLookAndFeel global function, TcxLookAndFeelController, or TdxSkinController component. If a look & feel option is set to the default value, the look & feel painter uses the corresponding global constant value. The RootLookAndFeel.MasterLookAndFeel property always returns nil (in Delphi) or nullptr/NULL (in C++Builder).
The level of global constants whose values determine the default look & feel settings.
You can use the MasterLookAndFeel property to:
Identify the default look & feel settings at the current level.
Customize look & feel settings of a control’s immediate parent.
Assign another source of look & feel settings to set or change the parent level for a control.
Every DevExpress control or component that serves as a source of look & feel settings must implement the IcxLookAndFeelNotificationListener interface to notify all registered listeners of the following changes:
Any look & feel property change. A listener control’s appearance updates
A TcxLookAndFeel class instance destruction. A listener control imports default look & feel settings from the global level once the current source is destroyed.