Hi,
I am using ScatterSplineSeries and I have defined tooltip template in PointTemplate. My requirement is such that I do not want to see the data points visually but on mouse hover on point tooltip to be shown. Here is my XAML. I tried setting the Visibility property of the Ellipse but then tooltip also stopped showing. How to acheive this ? Please help me.
<
telerik:ScatterSeriesDescriptor
ItemsSourcePath
=
"Points"
YValuePath
=
"YValue"
XValuePath
=
"XValue"
>
<
telerik:ScatterSeriesDescriptor.Style
>
<
Style
TargetType
=
"telerik:ScatterSplineSeries"
>
<
Setter
Property
=
"StrokeThickness"
Value
=
"{Binding StrokeThickness}"
></
Setter
>
<
Setter
Property
=
"Stroke"
Value
=
"{Binding Color}"
></
Setter
>
<
Setter
Property
=
"Visibility"
Value
=
"{Binding IsVisible,Converter={StaticResource BooleanToVisibilityConverter}}"
></
Setter
>
<
Setter
Property
=
"DisplayName"
Value
=
"{Binding Name}"
></
Setter
>
<
Setter
Property
=
"PointTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
Ellipse
Width
=
"10"
Height
=
"10"
Fill
=
"{DynamicResource BRUSH_SELECTION}"
>
<
Ellipse.ToolTip
>
<
ToolTip
>
<
ToolTip.Style
>
<
Style
TargetType
=
"ToolTip"
>
<
Style.Setters
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
>
<
Grid
Background
=
"{DynamicResource BRUSH_TOOLTIP}"
HorizontalAlignment
=
"Right"
Width
=
"120"
Height
=
"70"
>
<
StackPanel
Margin
=
"5"
Orientation
=
"Vertical"
>
<
StackPanel
Width
=
"{TemplateBinding Width}"
Orientation
=
"Horizontal"
Background
=
"{DynamicResource BRUSH_TOOLTIP}"
Margin
=
"5"
>
<
TextBlock
Text
=
"Volume: "
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding XValue}"
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
" %"
FontWeight
=
"Bold"
/>
</
StackPanel
>
<
StackPanel
Width
=
"{TemplateBinding Width}"
Orientation
=
"Horizontal"
Background
=
"{DynamicResource BRUSH_TOOLTIP}"
Margin
=
"5"
>
<
TextBlock
Text
=
"Dose: "
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding YValue}"
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
" Gy"
FontWeight
=
"Bold"
/>
</
StackPanel
>
</
StackPanel
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style.Setters
>
</
Style
>
</
ToolTip.Style
>
</
ToolTip
>
</
Ellipse.ToolTip
>
</
Ellipse
>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
<
Style.Triggers
>
<
DataTrigger
Binding
=
"{Binding IsDashed,Mode=TwoWay}"
Value
=
"True"
>
<
Setter
Property
=
"DashArray"
Value
=
"5"
></
Setter
>
</
DataTrigger
>
</
Style.Triggers
>
</
Style
>
</
telerik:ScatterSeriesDescriptor.Style
>
</
telerik:ScatterSeriesDescriptor
>