Hi Telerik,
I'm glad to see you're including a point series in your next release. At the moment I'm simulating a point series by styling a LineSeries, and making the stroke transparent. I then use a PointTemplate to make the point, as below.
My question is how can I bind the fill brush of the ellipse I'm using to the palette colour for the series?
thanks
<Style x:Key="LineSeriesAsPointsStyle" TargetType="{x:Type telerik:LineSeries}">
<Setter Property="StrokeShapeStyle">
<Setter.Value>
<Style TargetType="{x:Type Path}">
<Setter Property="Stroke" Value="#00000000"/>
<Setter Property="StrokeThickness" Value="0"/>
</Style>
</Setter.Value>
</Setter>
<Setter Property="PointTemplate">
<Setter.Value>
<DataTemplate>
<Ellipse Height="7" Width="7" Fill="Red" /><!-- here is the problem -->
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
I'm glad to see you're including a point series in your next release. At the moment I'm simulating a point series by styling a LineSeries, and making the stroke transparent. I then use a PointTemplate to make the point, as below.
My question is how can I bind the fill brush of the ellipse I'm using to the palette colour for the series?
thanks
<Style x:Key="LineSeriesAsPointsStyle" TargetType="{x:Type telerik:LineSeries}">
<Setter Property="StrokeShapeStyle">
<Setter.Value>
<Style TargetType="{x:Type Path}">
<Setter Property="Stroke" Value="#00000000"/>
<Setter Property="StrokeThickness" Value="0"/>
</Style>
</Setter.Value>
</Setter>
<Setter Property="PointTemplate">
<Setter.Value>
<DataTemplate>
<Ellipse Height="7" Width="7" Fill="Red" /><!-- here is the problem -->
</DataTemplate>
</Setter.Value>
</Setter>
</Style>