A newer version of this page is available. Switch to the current version.

ThemedWindow.ToolbarItemTemplate Property

Gets or sets a template applied to the current ThemedWindow‘s toolbar items. This is a dependency property.

Namespace: DevExpress.Xpf.Core

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


public DataTemplate ToolbarItemTemplate { get; set; }

Property Value

Type Description

A DataTemplate object applied to the current ThemedWindow’s toolbar items.


The template assigned to the ToolbarItemTemplate property is applied to items stored within the ThemedWindow.ToolbarItems collection. To utilize multiple toolbar item templates that switch based on custom logic, assign the required template selector to the ThemedWindow.ToolbarItemTemplateSelector property.


The ToolbarrItemTemplate property applies to all objects except UIElements objects.

The following code sample shows how to add ThemedWindow Toolbar Items and change its’ ToolbarItemTemplate:

        <Button Content="SimpleButton"/>

    <Border Margin="1" Background="Blue">
      <TextBlock Margin="5" Foreground="White" Text="{Binding}"/>

The image below illustrates the result:


In this code snippet, the ToolbarItemTemplate property applies to all objects except the Button control.

ThemedWindow - Toolbar Items Template

See Also