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

UserLookAndFeel.ParentLookAndFeel Property

Gets or sets the parent LookAndFeel.

Namespace: DevExpress.LookAndFeel

Assembly: DevExpress.Utils.v19.1.dll

Declaration

[Browsable(false)]
public virtual UserLookAndFeel ParentLookAndFeel { get; set; }

Property Value

Type Description
UserLookAndFeel

A UserLookAndFeel object specifying the parent LookAndFeel; null if the parent LookAndFeel is not assigned.

Remarks

Use the ParentLookAndFeel property to specify a master LookAndFeel object for the current UserLookAndFeel instance.

DevExpress controls that support the LookAndFeel functionality provide properties (usually named LookAndFeel) of the UserLookAndFeel class. You can use the LookAndFeel properties to customize the appearance of each control separately. If you need a centralized control of controls’ look and feel, however, then you should consider using the Default LookAndFeel (see the static UserLookAndFeel.Default property) or the parent LookAndFeel property.

The Default LookAndFeel represents a static UserLookAndFeel object which, by default, determines appearance settings of all DevExpress controls in your application.

A parent LookAndFeel is also a UserLookAndFeel object but this can be assigned to a subset of controls in order to make them look alike, while the appearance of other controls in your application is determined by another parent LookAndFeel, Default LookAndFeel or individual settings of controls.

To use settings of the parent LookAndFeel for a specific control, you need to set the UserLookAndFeel.UseDefaultLookAndFeel property of the control’s LookAndFeel property to true.

If UserLookAndFeel.UseDefaultLookAndFeel is false, parent look and feel settings are ignored and look and feel settings are determined by the control’s LookAndFeel object settings.

If UserLookAndFeel.UseDefaultLookAndFeel is set to true but the ParentLookAndFeel property is null, the control’s appearance is determined by the Default LookAndFeel.

The UserLookAndFeel.ActiveLookAndFeel topic provides a summary of the actual look and feel settings currently applied depending on ParentLookAndFeel and UserLookAndFeel.UseDefaultLookAndFeel property values.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ParentLookAndFeel 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