dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-b3bf4d37.md
Gets or sets the title text. This is a dependency property.
Namespace : DevExpress.DashboardWpf
Assembly : DevExpress.Dashboard.v25.2.Wpf.dll
NuGet Package : DevExpress.Wpf.Dashboard
public object TitleContent { get; set; }
Public Property TitleContent As Object
| Type | Description |
|---|---|
| Object |
An object displayed in the dashboard title. Specify a String to display text.
|
View Example: How to add custom buttons and menu elements to dashboard item captions
<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 TitleContent 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#L13
<Grid>
<dxdash:DashboardControl x:Name="dashboardControl1" TitleAlignment="Center" TitleContent="Title Content" TitleVisibility="Visible">
<dxdash:DashboardControl.TitleContentTemplate>
See Also