New to Telerik UI for WPF? Start a free 30-day trial
Customize RadChartView Trackball DisplayContent
Updated on Sep 15, 2025
Environment
| Product Version | 2019.2.618 |
| Product | RadChartView for WPF |
Description
How to modify the display content of ChartTrackBallBehavior's TrackBallInfoControl in RadChartView.
Solution
Set the DataPointInfoTemplate property of TrackBallInfoControl. To do this, use the TrackBallInfoStyle property of RadCartesianChart.
XAML
<telerik:RadCartesianChart.TrackBallInfoStyle>
<Style TargetType="telerik:TrackBallInfoControl">
<Setter Property="DataPointInfoTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock Text="{Binding DisplayContent}" Foreground="Green" FontStyle="Italic"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</telerik:RadCartesianChart.TrackBallInfoStyle>
