UserLookAndFeel.ActiveLookAndFeel Property
Gets the actual UserLookAndFeel object currently applied.
Namespace: DevExpress.LookAndFeel
Assembly: DevExpress.Utils.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
UserLookAndFeel | A UserLookAndFeel object currently applied. |
Remarks
The currently applied look and feel is determined according to the values of the UserLookAndFeel.UseDefaultLookAndFeel and UserLookAndFeel.ParentLookAndFeel properties.
Property values | Description |
---|---|
UserLookAndFeel.UseDefaultLookAndFeel is set to true UserLookAndFeel.ParentLookAndFeel specifies a non-null value | Look and feel settings are controlled by a parent LookAndFeel object assigned to the UserLookAndFeel.ParentLookAndFeel property. In turn, these settings are determined by the UserLookAndFeel.UseDefaultLookAndFeel and UserLookAndFeel.ParentLookAndFeel properties of the parent LookAndFeel. ActiveLookAndFeel will return the parent LookAndFeel whose settings are currently applied. Specifying a parent LookAndFeel object can be useful to provide centralized management of controls’ appearance. |
UserLookAndFeel.UseDefaultLookAndFeel is set to true UserLookAndFeel.ParentLookAndFeel specifies a null value | The current look and feel settings are controlled by a static Default LookAndFeel object and the ActiveLookAndFeel property returns this object. You can access the Default LookAndFeel via the static UserLookAndFeel.Default property or by placing and customizing a DefaultLookAndFeel component. The UserLookAndFeel.Default property can only be accessed via code, while the DefaultLookAndFeel component can be customized at design and runtime. |
UserLookAndFeel.UseDefaultLookAndFeel is set to false | Look and feel settings are controlled by the current UserLookAndFeel object. ActiveLookAndFeel returns a reference to the current object. Changing properties of the Default LookAndFeel enables you to have all controls in your application looking alike. This is the case, if UserLookAndFeel.UseDefaultLookAndFeel is set to true and control’s style properties are set to Default (see the UserLookAndFeel topic for more information). |
The style applied by the active LookAndFeel object is defined by the UserLookAndFeel.ActiveStyle property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ActiveLookAndFeel 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.