Category / Section
How to change the background and text color of tooltip?
1 min read
You can change the background and text color of tooltip using the following code example.
XAML
<ControlTemplate x:Key="CustomToolTip"> <StackPanel Orientation="Horizontal" Background="Red"> <TextBlock Text="Measure:"/> <TextBlock Text="{Binding currSegment.DataPoint.X }" FontStyle="Italic" /> <TextBlock Text="Volume:"/> <TextBlock Text="{Binding currSegment.DataPoint.Y}" /> </StackPanel> </ControlTemplate>