windowsforms-devexpress-dot-xtralayout-dot-optionsview-194e0e20.md
Allows the parent’s background to be seen through the LayoutControl.
Namespace : DevExpress.XtraLayout
Assembly : DevExpress.XtraLayout.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(true)]
public bool EnableTransparentBackColor { get; set; }
<DefaultValue(True)>
Public Property EnableTransparentBackColor As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if the parent’s background is seen through the LayoutControl; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to EnableTransparentBackColor |
|---|---|
| LayoutControl |
.OptionsView .EnableTransparentBackColor
|
This property enables the transparency process which is supported by the LayoutControl. If you need an image to be seen through the LayoutControl do the following:
Note
Setting the EnableTransparentBackColor property to true reduces the control’s painting performance.
Note
The transparency feature is not supported in skinning painting schemes.
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;
' Make the LayoutControl transparent
LayoutControl1.BackColor = Color.Transparent
' Make Layout Groups transparent
LayoutControl1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat
LayoutControl1.LookAndFeel.UseDefaultLookAndFeel = False
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