Back to Devexpress

How to: Add a Legend Title to a Legend

wpf-116012-controls-and-libraries-charts-suite-chart-control-examples-chart-elements-how-to-add-a-legend-title-to-a-legend.md

latest566 B
Original Source

How to: Add a Legend Title to a Legend

  • Jun 07, 2019

To display the legend title, assign a newly created LegendTitle object to the LegendBase.Title property. Then, specify the title’s TitleBase.Content property.

xaml
<dxc:Legend>
    <dxc:Legend.Title>
        <dxc:LegendTitle Content="Area of Countries"/>
    </dxc:Legend.Title>
</dxc:Legend>