I manually set the color of a Line Series in xaml as Blue. Now in tooltip I also want the same color.
<
telerik:LineSeries
x:Name
=
ser1
ItemsSource
=
"{Binding Data}"
CategoryBinding
=
"Name"
Stroke
=
"Blue"
ValueBinding
=
"Value"
>
<
telerik:LineSeries.TooltipTemplate
>
<
DataTemplate
>
<
SatckPanel
>
<
ItemsControls
ItemsSource
=
"{Binding}"
>
<
ItemsControl.Template
>
<
DataTemplate
>
<
Ellipse
Width
=
"12"
Height
=
"12"
Fill
=
"Blue"
>
....
</
DataTemplate
>
</
ItemsControl.Template
>
<
ItemsControls
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:LineSeries.TooltipTemplate
>
</
telerik:LineSeries
>
Now my question if we don't use hard code how can we make the colors same?