dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-092d4159.md
Gets or sets the horizontal alignment of the dashboard title content, excluding command buttons. This is a dependency property.
Namespace : DevExpress.DashboardWpf
Assembly : DevExpress.Dashboard.v25.2.Wpf.dll
NuGet Package : DevExpress.Wpf.Dashboard
public HorizontalAlignment? TitleAlignment { get; set; }
Public Property TitleAlignment As HorizontalAlignment?
| Type | Description |
|---|---|
| Nullable<HorizontalAlignment> |
The HorizontalAlignment enumeration member that specifies horizontal alignment.
|
Properties used to customize the dashboard title are listed in the foillowing table:
| Property | Description |
|---|---|
TitleAlignment | Gets or sets the horizontal alignment of the dashboard title content, excluding command buttons. This is a dependency property. |
| TitleContent | Gets or sets the title text. This is a dependency property. |
| TitleContentTemplate | Allows you to specify a template to display in the dashboard title (command buttons are not affected). |
| TitleContentTemplateSelector | Gets or sets an object that returns a template based on custom logic. This is a dependency property. |
| TitleVisibility | Gets or sets whether the dashboard title is displayed. |
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TitleAlignment 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