Back to Devexpress

DashboardControl.TitleAlignment Property

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-092d4159.md

latest3.5 KB
Original Source

DashboardControl.TitleAlignment Property

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

Declaration

csharp
public HorizontalAlignment? TitleAlignment { get; set; }
vb
Public Property TitleAlignment As HorizontalAlignment?

Property Value

TypeDescription
Nullable<HorizontalAlignment>

The HorizontalAlignment enumeration member that specifies horizontal alignment.

|

Remarks

Properties used to customize the dashboard title are listed in the foillowing table:

PropertyDescription
TitleAlignmentGets or sets the horizontal alignment of the dashboard title content, excluding command buttons. This is a dependency property.
TitleContentGets or sets the title text. This is a dependency property.
TitleContentTemplateAllows you to specify a template to display in the dashboard title (command buttons are not affected).
TitleContentTemplateSelectorGets or sets an object that returns a template based on custom logic. This is a dependency property.
TitleVisibilityGets 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

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

See Also

Dashboard Title in the WPF Dashboard Viewer

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace