UserLookAndFeel.UseDefaultLookAndFeel Property
Gets or sets whether the current object’s settings are in effect.
Namespace: DevExpress.LookAndFeel
Assembly: DevExpress.Utils.v24.2.dll
Declaration
[DefaultValue(true)]
[DXCategory("Appearance")]
public virtual bool UseDefaultLookAndFeel { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true | true to use look and feel settings provided by the parent object or default look and feel object; false to enable this object’s settings. |
Remarks
If the UseDefaultLookAndFeel
property is set to true and the UserLookAndFeel.ParentLookAndFeel property specifies a non-null value, look and feel settings are specified by the object assigned to the UserLookAndFeel.ParentLookAndFeel property.
If the UseDefaultLookAndFeel
property value is true and the UserLookAndFeel.ParentLookAndFeel property value is null (Nothing in Visual Basic), look and feel settings are controlled by an object specified by the UserLookAndFeel.Default property. Drop the the DefaultLookAndFeel component onto a form to customize the default look and feel settings.
The following example specifies “The Bezier” skin as a default skin:
If the UseDefaultLookAndFeel
property value is set to false, the UserLookAndFeel.SkinName property specifies the appearance and look and feel of UI controls. You can disable this setting for individual controls to specify a unique skin (if you apply a vector skin, it will use its default color palette), but this approach is not recommended.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UseDefaultLookAndFeel 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.