Hello James,
Here is the default style for the Tooltips in the "Office Black" theme:
<
SolidColorBrush
x:Key
=
"ToolTip2DForeground"
Color
=
"Black"
/>
<
Thickness
x:Key
=
"ToolTip2DPadding"
>1</
Thickness
>
<
LinearGradientBrush
x:Key
=
"ToolTip2DBackground"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"White"
Offset
=
"0"
/>
<
GradientStop
Color
=
"#FFDEDEDE"
Offset
=
"1"
/>
</
LinearGradientBrush
>
<
SolidColorBrush
x:Key
=
"ToolTip2DOuterBorder"
Color
=
"Transparent"
/>
<
Thickness
x:Key
=
"ToolTip2DOuterBorderThickness"
>0</
Thickness
>
<
mscorlib:Double
x:Key
=
"ToolTip2DOuterBorderOpacity"
>0</
mscorlib:Double
>
<
CornerRadius
x:Key
=
"ToolTip2DOuterCornerRadius"
>0</
CornerRadius
>
<
SolidColorBrush
x:Key
=
"ToolTip2DInnerBorder"
Color
=
"#FF848484"
/>
<
Thickness
x:Key
=
"ToolTip2DInnerBorderThickness"
>1</
Thickness
>
<
CornerRadius
x:Key
=
"ToolTip2DInnerCornerRadius"
>3</
CornerRadius
>
<
Style
TargetType
=
"charting:ItemToolTip2D"
>
<
Setter
Property
=
"BorderThickness"
Value
=
"{StaticResource ToolTip2DOuterBorderThickness}"
/>
<
Setter
Property
=
"InnerBorderThickness"
Value
=
"{StaticResource ToolTip2DInnerBorderThickness}"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"{StaticResource ToolTip2DOuterBorder}"
/>
<
Setter
Property
=
"InnerBorderBrush"
Value
=
"{StaticResource ToolTip2DInnerBorder}"
/>
<
Setter
Property
=
"Foreground"
Value
=
"{StaticResource ToolTip2DForeground}"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource ToolTip2DBackground}"
/>
<
Setter
Property
=
"BorderOpacity"
Value
=
"{StaticResource ToolTip2DOuterBorderOpacity}"
/>
<
Setter
Property
=
"Padding"
Value
=
"{StaticResource ToolTip2DPadding}"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"charting:ItemToolTip2D"
>
<
charting:ClipPanel
>
<
Border
x:Name
=
"ToolTipBorder"
BorderThickness
=
"{TemplateBinding BorderThickness}"
CornerRadius
=
"{StaticResource ToolTip2DOuterCornerRadius}"
BorderBrush
=
"{TemplateBinding BorderBrush}"
Opacity
=
"{TemplateBinding BorderOpacity}"
>
<
Border
BorderThickness
=
"{TemplateBinding InnerBorderThickness}"
CornerRadius
=
"{StaticResource ToolTip2DInnerCornerRadius}"
BorderBrush
=
"{TemplateBinding InnerBorderBrush}"
Background
=
"{TemplateBinding Background}"
Padding
=
"{TemplateBinding Padding}"
>
<
ContentControl
Content
=
"{TemplateBinding Content}"
Foreground
=
"{TemplateBinding Foreground}"
/>
</
Border
>
<
Border.Triggers
>
<
EventTrigger
RoutedEvent
=
"Border.Loaded"
>
<
EventTrigger.Actions
>
<
BeginStoryboard
>
<
Storyboard
>
<
DoubleAnimationUsingKeyFrames
BeginTime
=
"00:00:00"
Duration
=
"00:00:00.6"
Storyboard.TargetName
=
"ToolTipBorder"
Storyboard.TargetProperty
=
"(UIElement.Opacity)"
>
<
SplineDoubleKeyFrame
KeyTime
=
"00:00:00"
Value
=
"0"
/>
<
SplineDoubleKeyFrame
KeyTime
=
"00:00:00.6"
Value
=
"1"
/>
</
DoubleAnimationUsingKeyFrames
>
</
Storyboard
>
</
BeginStoryboard
>
</
EventTrigger.Actions
>
</
EventTrigger
>
</
Border.Triggers
>
</
Border
>
</
charting:ClipPanel
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
In your project you can set a CustomTooltip style in your resources as follows:
and apply it in your code-behind:
where series1 is your Line series.
Sincerely yours,
Sia
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items