Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutControl.LookAndFeel Property

Provides access to the settings that control the layout control’s look and feel.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[XtraSerializableProperty(XtraSerializationVisibility.Content)]
[DXCategory("Appearance")]
public virtual SerializeableUserLookAndFeel LookAndFeel { get; }

#Property Value

Type Description
DevExpress.XtraLayout.SerializeableUserLookAndFeel

A UserLookAndFeel object whose properties specify the layout control’s look and feel.

#Remarks

For more information on the look and feel technology, see the Look and Feel topic.

#Example

The following code shows how to make a LayoutControl transparent, using the OptionsView.EnableTransparentBackColor property.

// Make the LayoutControl transparent
layoutControl1.BackColor = Color.Transparent;

//Make Layout Groups transparent
layoutControl1.LookAndFeel.UseDefaultLookAndFeel = false;
layoutControl1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
layoutControl1.OptionsView.EnableTransparentBackColor = true;
layoutControl1.Root.AppearanceGroup.BackColor = System.Drawing.Color.Transparent;
layoutControl1.Root.AppearanceGroup.Options.UseBackColor = true;

// Prevent embedded controls from inheriting the LayoutControl's look-and-feel.
layoutControl1.OptionsView.ShareLookAndFeelWithChildren = false;
See Also