windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribbonminitoolbaropacityoptions-b58bc159.md
Gets and sets whether the toolbar supports transparency.
Namespace : DevExpress.XtraBars.Ribbon
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(true)]
public bool AllowTransparency { get; set; }
<DefaultValue(True)>
Public Property AllowTransparency As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if the toolbar supports transparency, otherwise false.
|
You can access this nested property as listed below:
| Object Type | Path to AllowTransparency |
|---|---|
| RibbonMiniToolbar |
.OpacityOptions .AllowTransparency
| | RibbonMiniToolbarOpacityOptions |
.Default .AllowTransparency
|
If the AllowTransparency property set to true , the toolbar supports a transparent display. You can customize transparency settings via the RibbonMiniToolbarOpacityOptions.OpacityDistance, RibbonMiniToolbarOpacityOptions.TransparencyDistance and RibbonMiniToolbarOpacityOptions.TransparencyDistanceWhenBarHovered properties.
If the AllowTransparency property set to false , the toolbar is always opaque. The RibbonMiniToolbarOpacityOptions.OpacityDistance, RibbonMiniToolbarOpacityOptions.TransparencyDistance and RibbonMiniToolbarOpacityOptions.TransparencyDistanceWhenBarHovered properties are ignored.
See Also
TransparencyDistanceWhenBarHovered
RibbonMiniToolbarOpacityOptions Class