Skip to main content
A newer version of this page is available. .

AxisBase.ShowTitle Property

Specifies whether the axis title is visible.

Namespace: DevExpress.WinUI.Charts

Assembly: DevExpress.WinUI.Charts.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(true, Handler = "UpdateAxis")]
public bool ShowTitle { get; set; }

Property Value

Type Description
Boolean

true if the title is visible; otherwise, false.

Remarks

Use the AxisBase.Title property to specify the title content.

Example

The following markup shows the x-axis’ title, and specifies its content and appearance:

Customized axis title

<Charts:CartesianChart.AxisX>
    <Charts:AxisX Title="Year" 
                  ShowTitle="True" 
                  TitleAlignment="Far">
        <Charts:AxisX.TitleContentTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding}" 
                           FontSize="16" 
                           Foreground="Gray"/>
            </DataTemplate>
        </Charts:AxisX.TitleContentTemplate>
    </Charts:AxisX>
</Charts:CartesianChart.AxisX>
See Also