Articles in this section
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>

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied