Skip to main content
Bar

ToolBarControlBase.ShowBackground Property

Gets or sets whether the custom template is used to draw the current tool bar’s background. This property is in effect for standalone tool bars. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public bool ShowBackground { get; set; }

Property Value

Type Description
Boolean

true, if the custom template is used to draw the current tool bar’s background; otherwise, false. The default is true.

Remarks

Using the ToolBarControlBase.BackgroundTemplate property, you can provide a custom template used to render the background of a standalone tool bar. By default, if the template is specified, it is used to render the tool bar’s background. Set the ShowBackground property to false to prevent the custom background from being used.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowBackground 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