This is a migrated thread and some comments may be shown as answers.

Custom Point Mark

1 Answer 111 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Johnny
Top achievements
Rank 1
Johnny asked on 24 Oct 2009, 05:21 PM
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?

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 28 Oct 2009, 12:00 PM
Hello Johnny,

You can find this implemented in this online example.

Best regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart
Asked by
Johnny
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or