DashboardControl.TitleContentTemplate Property

Allows you to specify a template to display in the dashboard title (command buttons are not affected).

Namespace: DevExpress.DashboardWpf

Assembly: DevExpress.Dashboard.v18.1.Wpf.dll

Syntax

public DataTemplate TitleContentTemplate { get; set; }

Returns

Type Description
DataTemplate

A object that specifies the data template for the dashboard title content.

Note

The complete sample project How to add custom buttons and menu elements to dashboard item captions is available in the DevExpress Examples repository.

<dxdash:DashboardControl
    x:Name="dashboardControl1"
    TitleAlignment="Center"
    TitleContent="Title Content"
    TitleVisibility="Visible">
    <dxdash:DashboardControl.TitleContentTemplate>
        <DataTemplate>
            <ToggleButton Content="{Binding}" />
        </DataTemplate>
    </dxdash:DashboardControl.TitleContentTemplate>
    <!-- -->
</dxdash:DashboardControl>

See Also