Back to Devexpress

DashboardControl.TitleContentTemplate Property

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-d456a545.md

latest3.0 KB
Original Source

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.v25.2.Wpf.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public DataTemplate TitleContentTemplate { get; set; }
vb
Public Property TitleContentTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

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

|

Remarks

View Example: How to add custom buttons and menu elements to dashboard item captions

xaml
<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>

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

wpf-dashboard-how-to-add-custom-caption-menu/CS/WpfDashboardCustomCaptionMenu/MainWindow.xaml#L14

xml
<dxdash:DashboardControl x:Name="dashboardControl1" TitleAlignment="Center" TitleContent="Title Content" TitleVisibility="Visible">
    <dxdash:DashboardControl.TitleContentTemplate>
        <DataTemplate>

See Also

Dashboard Title in the WPF Dashboard Viewer

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace