I am attempting to add a custom point mark - I followed the example in the telerik documentation but the point remains a circle.
In xaml:
<Grid.Resources>
<Style x:Name="HorizontalLine" TargetType="Telerik_Windows_Controls_Charting:PointMark">
<Setter Property="Size" Value="100" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Telerik_Windows_Controls_Charting:PointMark">
<Canvas>
<Path x:Name="PART_PointMarkPath"
Style="{TemplateBinding ShapeStyle}"
Width="{TemplateBinding Size}"
Height="{TemplateBinding Size}"
Stretch="Fill"
Data="F1 M 6.5,3.5 L 3.5,0.5 0.5,3.5 3.5,6.5 0.5,9.5 3.5,12.5 6.5,9.5 9.5,12.5 12.5,9.5 9.5,6.5 12.5,3.5 9.5,0.5 6.5,3.5 Z">
</Path>
</Canvas>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Grid.Resources>
In vb.net Code
seriesData.Add(point)
seriesData.Definition = New LineSeriesDefinition
seriesData.Definition.PointMarkItemStyle = Me.HorizontalLine
For a quick test I even attempted the following code but the point mark still remained a circle.
seriesData.Add(point)
seriesData.Definition = New LineSeriesDefinition
seriesData.Definition.Appearance.PointMark.Shape = MarkerShape.Triangle
Any ideas on why the point mark won't change?
In xaml:
<Grid.Resources>
<Style x:Name="HorizontalLine" TargetType="Telerik_Windows_Controls_Charting:PointMark">
<Setter Property="Size" Value="100" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Telerik_Windows_Controls_Charting:PointMark">
<Canvas>
<Path x:Name="PART_PointMarkPath"
Style="{TemplateBinding ShapeStyle}"
Width="{TemplateBinding Size}"
Height="{TemplateBinding Size}"
Stretch="Fill"
Data="F1 M 6.5,3.5 L 3.5,0.5 0.5,3.5 3.5,6.5 0.5,9.5 3.5,12.5 6.5,9.5 9.5,12.5 12.5,9.5 9.5,6.5 12.5,3.5 9.5,0.5 6.5,3.5 Z">
</Path>
</Canvas>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Grid.Resources>
In vb.net Code
seriesData.Add(point)
seriesData.Definition = New LineSeriesDefinition
seriesData.Definition.PointMarkItemStyle = Me.HorizontalLine
For a quick test I even attempted the following code but the point mark still remained a circle.
seriesData.Add(point)
seriesData.Definition = New LineSeriesDefinition
seriesData.Definition.Appearance.PointMark.Shape = MarkerShape.Triangle
Any ideas on why the point mark won't change?