AxisBase.ShowTitle Property
In This Article
Specifies whether the axis title is visible.
Namespace: DevExpress.WinUI.Charts
Assembly: DevExpress.WinUI.Charts.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#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:
<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