I have a pb customizing the data Points of my line Series. I tried to use the examples used to collapse the data Points by setting my customized template but,if i customize the datapoint template the line series disappears and only the datapoints are shown.
Here is a part of my the curve style:
<visualizationToolkit:ResourceDictionaryCollection x:Key="ChartPaletteDataPoints">
<!-- Curve 1 -->
<ResourceDictionary>
<Style x:Key="DataPointStyle" TargetType="Control" >
<Setter Property="Background" Value="{Binding Data.Children[0].Color, Source={StaticResource proxyCurv}}" />
<Setter Property="Width" Value="19" />
<Setter Property="Height" Value="19" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="chartingToolkit:LineDataPoint">
<Grid x:Name="Root">
<ToolTipService.ToolTip>
<StackPanel Orientation="Horizontal" >
<Label Content="("/>
<Label Content="{TemplateBinding IndependentValue}"/>
<Label Content=","/>
<Label Content="{TemplateBinding DependentValue}"/>
<Label Content=")"/>
</StackPanel>
</ToolTipService.ToolTip>
<Label Margin="3,3,0,0" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Center" >
<Label.Content>
<MultiBinding Converter="{StaticResource GroupSymbolToShapeConverter}">
<Binding Path="Data.Children[0].Symbol" Source="{StaticResource proxyCurv}"/>
<Binding Path="Data.Children[0].Color" Source="{StaticResource proxyCurv}"/>
</MultiBinding>
</Label.Content>
</Label>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="DataShapeStyle" TargetType="Shape">
<Setter Property="Stroke" Value="{Binding Data.Children[0].Color, Source={StaticResource proxyCurv}}" />
<Setter Property="StrokeThickness" Value="2" />
<Setter Property="StrokeMiterLimit" Value="1" />
<Setter Property="Fill" Value="{Binding Data.Children[0].Color, Source={StaticResource proxyCurv}}" />
</Style>
</ResourceDictionary>
<!--Other Curves...-->
</visualizationToolkit:ResourceDictionaryCollection>
PS: The GroupSymbolToShapeConverter
returns a shape object containing the shape of the datapoint.