Skip to main content

How to: Provide a Custom Template for Series Labels

The following example demonstrates how to change the appearance of series labels.

To accomplish this, it is necessary to create a System.Windows.DataTemplate that specifies the appearance of series labels, and add it to a UserControl's resource. Then, this template can be applied to a series label via its ChartTextElement.ElementTemplate property.