Bar

ToolBarControlBase.BackgroundTemplate Property

Gets or sets the ControlTemplate used to render the 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.v20.1.dll

Declaration

public ControlTemplate BackgroundTemplate { get; set; }
Public Property BackgroundTemplate As ControlTemplate

Property Value

Type Description
ControlTemplate

A ControlTemplate object that specifies the visual structure and behavior of the current tool bar's background.

Remarks

The BackgroundTemplate property is not in effect for tool bars contained in a BarContainerControl. For standalone tool bars, the BackgroundTemplate property allows you to provide a custom template that is used to render the tool bar's background. By default, if the template is specified, it is used to render the background. You can use the ToolBarControlBase.ShowBackground property to specify whether to use the custom template for the current tool bar.

You can also provide a template used to render the tool bar's border, using the ToolBarControlBase.BorderTemplate property.

See Also